Class ApplicationExitingEvent
Represents an event that is raised just before the application exits.
public class ApplicationExitingEvent- Inheritance
- 
      
      ApplicationExitingEvent
- Inherited Members
Examples
This example is an IModule implementation, with a method which is called at exiting.
[Export(typeof(IModule))]
internal class MyAppModule : ModuleBase, IHandle<ApplicationExitingEvent>
{
    [ImportingConstructor]
    public MyAppModule(IEventAggregator eventAggregator)
    {
        eventAggregator.Subscribe(this);
    }
    public void Handle(ApplicationExitingEvent message)
    {
        // This method is called, when the application is exiting.
    }
}
Remarks
Implement the Caliburn.Micro.IHandle<ApplicationExitingEvent> interface, and add an instance of the implementation to the IEventAggregator.