C# 클래스 DotNetWorkQueue.ASendJobToQueue

Base class for sending jobs to transports
상속: ISendJobToQueue
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

보호된 프로퍼티들

프로퍼티 타입 설명
GetTimeFactory IGetTimeFactory
Queue IProducerMethodQueue

공개 메소드들

메소드 설명
Dispose ( ) : void

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

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

Sends the specified action to the specified queue.

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

Sends the specified action to the specified queue.

보호된 메소드들

메소드 설명
ASendJobToQueue ( IProducerMethodQueue queue, IGetTimeFactory getTimeFactory ) : System

Initializes a new instance of the ASendJobToQueue class.

DeleteJob ( string name ) : void

Deletes the job based on the job name.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources.

DoesJobExist ( string name, DateTimeOffset scheduledTime ) : QueueStatuses

Returns the status of the job based on name and scheduled time.

JobAlreadyExistsError ( Exception error ) : bool

Return true if the exception indicates that the job already exists.

Used to determine if we should return specific error messages

SetMetaDataForJob ( string jobName, DateTimeOffset scheduledTime, DateTimeOffset eventTime, string route, IAdditionalMessageData messageData ) : void

Sets the specified meta data on the messageData context

비공개 메소드들

메소드 설명
ProcessResult ( IScheduledJob job, DateTimeOffset scheduledTime, IQueueOutputMessage result ) : IJobQueueOutputMessage
SendPreChecks ( string jobName, DateTimeOffset scheduledTime ) : IJobQueueOutputMessage

메소드 상세

ASendJobToQueue() 보호된 메소드

Initializes a new instance of the ASendJobToQueue class.
protected ASendJobToQueue ( IProducerMethodQueue queue, IGetTimeFactory getTimeFactory ) : System
queue IProducerMethodQueue The queue.
getTimeFactory IGetTimeFactory The get time factory.
리턴 System

DeleteJob() 보호된 추상적인 메소드

Deletes the job based on the job name.
protected abstract DeleteJob ( string name ) : void
name string The name.
리턴 void

Dispose() 공개 메소드

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

Dispose() 보호된 메소드

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.
리턴 void

DoesJobExist() 보호된 추상적인 메소드

Returns the status of the job based on name and scheduled time.
protected abstract DoesJobExist ( string name, DateTimeOffset scheduledTime ) : QueueStatuses
name string The name.
scheduledTime DateTimeOffset The scheduled time.
리턴 QueueStatuses

JobAlreadyExistsError() 보호된 추상적인 메소드

Return true if the exception indicates that the job already exists.
Used to determine if we should return specific error messages
protected abstract JobAlreadyExistsError ( Exception error ) : bool
error System.Exception The error.
리턴 bool

SendAsync() 공개 메소드

Sends the specified action to the specified queue.
public SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, Expression actionToRun ) : Task
job IScheduledJob The job.
scheduledTime DateTimeOffset The scheduled time.
actionToRun Expression The action to run.
리턴 Task

SendAsync() 공개 메소드

Sends the specified action to the specified queue.
public SendAsync ( IScheduledJob job, DateTimeOffset scheduledTime, LinqExpressionToRun expressionToRun ) : Task
job IScheduledJob The job.
scheduledTime DateTimeOffset The scheduled time.
expressionToRun DotNetWorkQueue.Messages.LinqExpressionToRun The expression to run.
리턴 Task

SetMetaDataForJob() 보호된 추상적인 메소드

Sets the specified meta data on the messageData context
protected abstract SetMetaDataForJob ( string jobName, DateTimeOffset scheduledTime, DateTimeOffset eventTime, string route, IAdditionalMessageData messageData ) : void
jobName string Name of the job.
scheduledTime DateTimeOffset The scheduled time.
eventTime DateTimeOffset The event time.
route string The route. May be null.
messageData IAdditionalMessageData The message data.
리턴 void

프로퍼티 상세

GetTimeFactory 보호되어 있는 프로퍼티

Time factory for obtaining current date/time
protected IGetTimeFactory GetTimeFactory
리턴 IGetTimeFactory

Queue 보호되어 있는 프로퍼티

The queue to send jobs to.
protected IProducerMethodQueue Queue
리턴 IProducerMethodQueue