C# Class Source.Concurrency.SequentialTaskScheduler

Inheritance: System.Threading.Tasks.TaskScheduler, IShutDownable
Afficher le fichier Open project: mrange/T4Include

Méthodes publiques

Свойство Type Description
Name string
TimeOut System.TimeSpan

Méthodes publiques

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

Méthodes protégées

Méthode Description
GetScheduledTasks ( ) : IEnumerable
QueueTask ( Task task ) : void
TryDequeue ( Task task ) : bool
TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool

Private Methods

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

GetScheduledTasks() protected méthode

protected GetScheduledTasks ( ) : IEnumerable
Résultat IEnumerable

QueueTask() protected méthode

protected QueueTask ( Task task ) : void
task Task
Résultat void

SequentialTaskScheduler() public méthode

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

ShutDown() public méthode

public ShutDown ( RemainingTime remainingTime ) : void
remainingTime RemainingTime
Résultat void

SignalShutDown() public méthode

public SignalShutDown ( ) : void
Résultat void

TryDequeue() protected méthode

protected TryDequeue ( Task task ) : bool
task Task
Résultat bool

TryExecuteTaskInline() protected méthode

protected TryExecuteTaskInline ( Task task, bool taskWasPreviouslyQueued ) : bool
task Task
taskWasPreviouslyQueued bool
Résultat bool

Property Details

Name public_oe property

public string Name
Résultat string

TimeOut public_oe property

public TimeSpan,System TimeOut
Résultat System.TimeSpan