Property SafeHandler
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
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.Handlerisnull, indicating a misconfiguration or improper initialization sequence.