C# 클래스 DotNetWorkQueue.Transport.Redis.Basic.RedisSendJobToQueue

Sends a job to a queue
상속: ASendJobToQueue
파일 보기 프로젝트 열기: blehnen/DotNetWorkQueue

공개 메소드들

메소드 설명
RedisSendJobToQueue ( IProducerMethodQueue queue, QueueStatuses>.IQueryHandler doesJobExist, bool>.ICommandHandlerWithOutput deleteMessageCommand, string>.IQueryHandler getJobId, IGetTimeFactory getTimeFactory, IJobSchedulerMetaData jobSchedulerMetaData ) : System

Initializes a new instance of the RedisSendJobToQueue class.

보호된 메소드들

메소드 설명
DeleteJob ( string name ) : void

Deletes the job based on the job name.

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

메소드 상세

DeleteJob() 보호된 메소드

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

DoesJobExist() 보호된 메소드

Returns the status of the job based on name and scheduled time.
protected 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 JobAlreadyExistsError ( Exception error ) : bool
error System.Exception The error.
리턴 bool

RedisSendJobToQueue() 공개 메소드

Initializes a new instance of the RedisSendJobToQueue class.
public RedisSendJobToQueue ( IProducerMethodQueue queue, QueueStatuses>.IQueryHandler doesJobExist, bool>.ICommandHandlerWithOutput deleteMessageCommand, string>.IQueryHandler getJobId, IGetTimeFactory getTimeFactory, IJobSchedulerMetaData jobSchedulerMetaData ) : System
queue IProducerMethodQueue The queue.
doesJobExist QueueStatuses>.IQueryHandler Query for determining if a job already exists
deleteMessageCommand bool>.ICommandHandlerWithOutput The delete message command.
getJobId string>.IQueryHandler The get job identifier.
getTimeFactory IGetTimeFactory The get time factory.
jobSchedulerMetaData IJobSchedulerMetaData The job scheduler meta data.
리턴 System

SetMetaDataForJob() 보호된 메소드

Sets the specified meta data on the messageData context
protected 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