C# Class Source.Concurrency.SequentialTaskScheduler

Inheritance: System.Threading.Tasks.TaskScheduler, IShutDownable
Show file Open project: mrange/T4Include

Public Properties

Property Type Description
Name string
TimeOut System.TimeSpan

Public Methods

Method Description
Dispose ( ) : void
SequentialTaskScheduler ( string name, System.TimeSpan timeOut = null, ApartmentState apartmentState = ApartmentState.Unknown ) : System
ShutDown ( RemainingTime remainingTime ) : void
SignalShutDown ( ) : void

Protected Methods

Method Description
GetScheduledTasks ( ) : IEnumerable
QueueTask ( Task task ) : void
TryDequeue ( Task task ) : bool
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

Private Methods

Method Description
OnRun ( object context ) : void
Partial_TaskFailed ( Task task, Exception exc, int failureCount, bool &done ) : void
Partial_ThreadCreated ( Thread thread ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetScheduledTasks() protected method

protected GetScheduledTasks ( ) : IEnumerable
return IEnumerable

QueueTask() protected method

protected QueueTask ( Task task ) : void
task Task
return void

SequentialTaskScheduler() public method

public SequentialTaskScheduler ( string name, System.TimeSpan timeOut = null, ApartmentState apartmentState = ApartmentState.Unknown ) : System
name string
timeOut System.TimeSpan
apartmentState ApartmentState
return System

ShutDown() public method

public ShutDown ( RemainingTime remainingTime ) : void
remainingTime RemainingTime
return void

SignalShutDown() public method

public SignalShutDown ( ) : void
return void

TryDequeue() protected method

protected TryDequeue ( Task task ) : bool
task Task
return bool

TryExecuteTaskInline() protected method

protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task
taskWasPreviouslyQueued bool
return bool

Property Details

Name public property

public string Name
return string

TimeOut public property

public TimeSpan,System TimeOut
return System.TimeSpan