C# Class Taskling.CriticalSection.CriticalSectionContext

Inheritance: ICriticalSectionContext
显示文件 Open project: Vanlightly/Taskling.NET

Public Methods

Method Description
Complete ( ) : void
CriticalSectionContext ( ICriticalSectionRepository criticalSectionRepository, TaskExecutionInstance taskExecutionInstance, TaskExecutionOptions taskExecutionOptions, CriticalSectionType criticalSectionType ) : System
Dispose ( ) : void
IsActive ( ) : bool
TryStart ( ) : bool
TryStart ( System.TimeSpan retryInterval, int numberOfAttempts ) : bool

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
TryStartCriticalSection ( ) : bool
ValidateOptions ( ) : void

Method Details

Complete() public method

public Complete ( ) : void
return void

CriticalSectionContext() public method

public CriticalSectionContext ( ICriticalSectionRepository criticalSectionRepository, TaskExecutionInstance taskExecutionInstance, TaskExecutionOptions taskExecutionOptions, CriticalSectionType criticalSectionType ) : System
criticalSectionRepository ICriticalSectionRepository
taskExecutionInstance Taskling.ExecutionContext.TaskExecutionInstance
taskExecutionOptions Taskling.Tasks.TaskExecutionOptions
criticalSectionType CriticalSectionType
return System

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

IsActive() public method

public IsActive ( ) : bool
return bool

TryStart() public method

public TryStart ( ) : bool
return bool

TryStart() public method

public TryStart ( System.TimeSpan retryInterval, int numberOfAttempts ) : bool
retryInterval System.TimeSpan
numberOfAttempts int
return bool