IApplicationLifetimeService interface¶
Tracks the application lifetime: signals when the application is stopping and shuts it down on request, so that view model code can observe and trigger shutdown without referencing the UI framework application lifetime directly.
Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts
Declaration¶
Properties¶
| name | description |
|---|---|
| ApplicationStoppingToken { get; } | A token that is cancelled when the application starts shutting down. |
| IsInitialized { get; } | Whether the application has finished initializing. |
Methods¶
| name | description |
|---|---|
| NotifyInitialized() | Marks the application as initialized. Call it once startup has completed. |
| Shutdown() | Shuts the application down. |