C# Class Hpdi.Vss2Git.WorkQueue

Extends the simple work queue with support for tracking worker status and exceptions.
Inheritance: SimpleWorkQueue
Mostra file Open project: abevoelker/vss2git Class Usage Examples

Public Methods

Method Description
ClearStatus ( object work ) : void
FetchExceptions ( ) : ICollection
GetStatus ( object work ) : string
SetStatus ( object work, string status ) : void
WaitIdle ( ) : void
WorkQueue ( ) : System
WorkQueue ( int maxThreads ) : System

Protected Methods

Method Description
OnActive ( ) : void
OnException ( WaitCallback work, Exception e ) : void
OnIdle ( ) : void
OnStart ( WaitCallback work ) : void
OnStop ( WaitCallback work ) : void

Private Methods

Method Description
WorkStatusCleared ( object work ) : void

Method Details

ClearStatus() public method

public ClearStatus ( object work ) : void
work object
return void

FetchExceptions() public method

public FetchExceptions ( ) : ICollection
return ICollection

GetStatus() public method

public GetStatus ( object work ) : string
work object
return string

OnActive() protected method

protected OnActive ( ) : void
return void

OnException() protected method

protected OnException ( WaitCallback work, Exception e ) : void
work WaitCallback
e System.Exception
return void

OnIdle() protected method

protected OnIdle ( ) : void
return void

OnStart() protected method

protected OnStart ( WaitCallback work ) : void
work WaitCallback
return void

OnStop() protected method

protected OnStop ( WaitCallback work ) : void
work WaitCallback
return void

SetStatus() public method

public SetStatus ( object work, string status ) : void
work object
status string
return void

WaitIdle() public method

public WaitIdle ( ) : void
return void

WorkQueue() public method

public WorkQueue ( ) : System
return System

WorkQueue() public method

public WorkQueue ( int maxThreads ) : System
maxThreads int
return System