Method RaiseIsRunningChanging
RaiseIsRunningChanging(bool, bool)
Called by the framework to raise the IsRunningChanging event.
public bool RaiseIsRunningChanging(bool oldIsRunning, bool newIsRunning)
Parameters
oldIsRunningboolThe current value of IsRunning.
newIsRunningboolThe new value of IsRunning (true = starting, false = stopping).
Returns
Remarks
This method implements the Cancellable Work Pattern. It calls the protected virtual method first, then raises the event if not canceled.
When newIsRunning is false (stopping), this is the ideal place
for implementations to extract Result from views before the runnable is removed from the stack.