Class ApplicationExitingEvent
Represents an event that is raised just before the application exits.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.Framework.Events
Assembly: Loehnert.Lisrt.dll
Syntax
public class ApplicationExitingEvent
Remarks
Implement the Caliburn.Micro.IHandle<ApplicationExitingEvent> interface, and add an instance of the implementation to the IEventAggregator.
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.
}
}