Table of Contents

Property SafeHandler

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SafeHandler

Provides guaranteed access to the application-level handler. Throws a NullReferenceException if the underlying App.Handler is null.

public static IApplicationHandler SafeHandler { get; }

Property Value

IApplicationHandler

Remarks

Intended for use in contexts where the application handler is expected to be initialized and available. This property ensures that access is fail-fast and explicit, preventing silent null propagation.

Exceptions

NullReferenceException

Thrown if App.Handler is null, indicating a misconfiguration or improper initialization sequence.