C# Class DotNetWorkQueue.Queue.BaseMonitor

A base monitor class for running actions on a queue
Inheritance: IMonitor
Exibir arquivo Open project: blehnen/DotNetWorkQueue

Private Properties

Property Type Description
Cancel void
CancelTokenDestroy void
Dispose void
RunMonitor void

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Start ( ) : void

Starts the monitor process.

Stop ( ) : void

Stops the monitor process.

Protected Methods

Method Description
BaseMonitor ( long>.Func monitorAction, IMonitorTimespan monitorTimeSpan, ILogFactory log ) : System

Initializes a new instance of the BaseMonitor class.

ThrowIfDisposed ( [ name = "" ) : void

Throws an exception if this instance has been disposed.

Private Methods

Method Description
Cancel ( ) : void

Cancels this instance.

CancelTokenDestroy ( ) : void

Destroys the cancel token

Dispose ( bool disposing ) : void
RunMonitor ( ) : void

Fires the monitor action

Method Details

BaseMonitor() protected method

Initializes a new instance of the BaseMonitor class.
protected BaseMonitor ( long>.Func monitorAction, IMonitorTimespan monitorTimeSpan, ILogFactory log ) : System
monitorAction long>.Func The monitor action.
monitorTimeSpan IMonitorTimespan The monitor time span.
log ILogFactory The log.
return System

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Start() public method

Starts the monitor process.
public Start ( ) : void
return void

Stop() public method

Stops the monitor process.
public Stop ( ) : void
return void

ThrowIfDisposed() protected method

Throws an exception if this instance has been disposed.
protected ThrowIfDisposed ( [ name = "" ) : void
name [ The name.
return void