C# Class DotNetWorkQueue.Queue.ProducerMethodJobQueue

Sends jobs to a transport
Inheritance: IProducerMethodJobQueue
ファイルを表示 Open project: blehnen/DotNetWorkQueue

Public Methods

Method Description
Dispose ( ) : void

Releases unmanaged and - optionally - managed resources.

ProducerMethodJobQueue ( IJobSchedulerLastKnownEvent jobSchedulerLastKnownEvent, ISendJobToQueue sendJobToQueue, ILogFactory logFactory, IJobTableCreation createJobQueue ) : System

Initializes a new instance of the ProducerMethodJobQueue class.

SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, Expression method ) : Task

Sends the specified linqExpression to be executed.

SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, LinqExpressionToRun linqExpression ) : Task

Sends the specified dynamic linqExpression to be executed.

Start ( ) : void

Starts this instance.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

Method Details

Dispose() public method

Releases unmanaged and - optionally - managed resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases unmanaged and - optionally - managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

ProducerMethodJobQueue() public method

Initializes a new instance of the ProducerMethodJobQueue class.
public ProducerMethodJobQueue ( IJobSchedulerLastKnownEvent jobSchedulerLastKnownEvent, ISendJobToQueue sendJobToQueue, ILogFactory logFactory, IJobTableCreation createJobQueue ) : System
jobSchedulerLastKnownEvent IJobSchedulerLastKnownEvent The job scheduler last known event.
sendJobToQueue ISendJobToQueue The send job to queue.
logFactory ILogFactory The log factory.
createJobQueue IJobTableCreation The create job queue.
return System

SendAsync() public method

Sends the specified linqExpression to be executed.
public SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, Expression method ) : Task
job IScheduledJob The job.
scheduledTime DateTimeOffset The scheduled time.
method Expression The linqExpression to execute.
return Task

SendAsync() public method

Sends the specified dynamic linqExpression to be executed.
public SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, LinqExpressionToRun linqExpression ) : Task
job IScheduledJob The job.
scheduledTime DateTimeOffset The scheduled time.
linqExpression DotNetWorkQueue.Messages.LinqExpressionToRun The linqExpression to execute.
return Task

Start() public method

Starts this instance.
public Start ( ) : void
return void