Table of Contents

Method StartRunning

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

StartRunning(RunnerStatus)

Protected. Begins background execution of the runner if it is not started, and in that case sets the runner's Status property to the specified value.

protected bool StartRunning(RunnerStatus NewStatus = RunnerStatus.Stalled)

Parameters

NewStatus RunnerStatus

The new Status property value to be set.

Returns

bool

true the runner status has been really changed, otherwise - false

Remarks

If the runner's Status property value is changed to the NewStatus value it will occur in a thread-safe manner. A change of the Status property value occures only if the original status was NotStarted). If this is the case the the method tries to start a backgrund processing via a StartBackgroundExecution() virtual method. If the Status property value is changes to a final one the runner should stop its background execution