IControlledApplicationLifetime Interface
Definition
public interface IControlledApplicationLifetime
Methods
| Name | Description |
|---|---|
| Shutdown | Shuts down the application and sets the exit code that is returned to the operating system when the application exits. |
Shutdown Method
Shuts down the application and sets the exit code that is returned to the operating system when the application exits.
public void Shutdown(int exitCode)
Parameters
exitCode int
An integer exit code for an application. The default exit code is 0.
Events
| Name | Description |
|---|---|
| Exit | Sent when the application is exiting. |
| Startup | Sent when the application is starting up. |
Exit Event
Sent when the application is exiting.
public event EventHandler<Avalonia.Controls.ApplicationLifetimes.ControlledApplicationLifetimeExitEventArgs> Exit
Startup Event
Sent when the application is starting up.
public event EventHandler<Avalonia.Controls.ApplicationLifetimes.ControlledApplicationLifetimeStartupEventArgs> Startup