Method End
End(SessionToken)
Building block API: Ends the session associated with the token and completes the execution of an IRunnable. Not usually called directly by applications. Run(IRunnable, Func<Exception, bool>?) will automatically call this method when the session is stopped.
[Obsolete("The legacy static Application object is going away.")]
public static void End(SessionToken sessionToken)
Parameters
sessionTokenSessionTokenThe RunnableSessionToken returned by the Begin(IRunnable) method.
Remarks
This method removes the IRunnable from the RunnableSessionStack,
raises the lifecycle events, and disposes the sessionToken.
Raises IsRunningChanging, IsRunningChanged, IsModalChanging, and IsModalChanged events.