Method End
End(SessionToken)
Building block API: Ends a Session and completes the execution of a Toplevel that was started with Begin(Toplevel). Not usually called directly by applications. Run(Toplevel, Func<Exception, bool>?) will automatically call this method when the session is stopped.
public void End(SessionToken sessionToken)
Parameters
sessionTokenSessionTokenThe SessionToken returned by the Begin(Toplevel) method.
Remarks
This method removes the Toplevel from the stack, raises the SessionEnded
event, and disposes the sessionToken.
End(RunnableSessionToken)
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.
public void End(RunnableSessionToken token)
Parameters
tokenRunnableSessionToken
Remarks
This method removes the IRunnable from the RunnableSessionStack,
raises the lifecycle events, and disposes the sessionToken.
Raises IsRunningChanging, IsRunningChanged, IsModalChanging, and IsModalChanged events.