C# Class DotNetWorkQueue.Transport.Redis.Basic.Metrics.Decorator.DelayedProcessingActionDecorator

Inheritance: IDelayedProcessingAction
显示文件 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
DelayedProcessingActionDecorator ( IMetrics metrics, IDelayedProcessingAction handler, IConnectionInformation connectionInformation ) : System.Threading

Initializes a new instance of the DelayedProcessingActionDecorator class.

Run ( CancellationToken token ) : long

Runs the action

Method Details

DelayedProcessingActionDecorator() public method

Initializes a new instance of the DelayedProcessingActionDecorator class.
public DelayedProcessingActionDecorator ( IMetrics metrics, IDelayedProcessingAction handler, IConnectionInformation connectionInformation ) : System.Threading
metrics IMetrics The metrics factory.
handler IDelayedProcessingAction The handler.
connectionInformation IConnectionInformation The connection information.
return System.Threading

Run() public method

Runs the action
public Run ( CancellationToken token ) : long
token System.Threading.CancellationToken The cancel token.
return long