C# Class DotNetWorkQueue.Transport.PostgreSQL.Basic.PostgreSqlSendJobToQueue

Inheritance: ASendJobToQueue
Afficher le fichier Open project: blehnen/DotNetWorkQueue

Méthodes publiques

Méthode Description
PostgreSqlSendJobToQueue ( IProducerMethodQueue queue, QueueStatuses>.IQueryHandler doesJobExist, long>.ICommandHandlerWithOutput deleteMessageCommand, long>.IQueryHandler getJobId, CreateJobMetaData createJobMetaData, IGetTimeFactory getTimeFactory ) : System

Initializes a new instance of the PostgreSqlSendJobToQueue class.

Méthodes protégées

Méthode Description
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

Method Details

DeleteJob() protected méthode

Deletes the job based on the job name.
protected DeleteJob ( string name ) : void
name string The name.
Résultat void

DoesJobExist() protected méthode

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.
Résultat QueueStatuses

JobAlreadyExistsError() protected méthode

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.
Résultat bool

PostgreSqlSendJobToQueue() public méthode

Initializes a new instance of the PostgreSqlSendJobToQueue class.
public PostgreSqlSendJobToQueue ( IProducerMethodQueue queue, QueueStatuses>.IQueryHandler doesJobExist, long>.ICommandHandlerWithOutput deleteMessageCommand, long>.IQueryHandler getJobId, CreateJobMetaData createJobMetaData, IGetTimeFactory getTimeFactory ) : System
queue IProducerMethodQueue The queue.
doesJobExist QueueStatuses>.IQueryHandler Query for determining if a job already exists
deleteMessageCommand long>.ICommandHandlerWithOutput The delete message command.
getJobId long>.IQueryHandler The get job identifier.
createJobMetaData CreateJobMetaData The create job meta data.
getTimeFactory IGetTimeFactory The get time factory.
Résultat System

SetMetaDataForJob() protected méthode

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.
Résultat void