C# Класс DotNetWorkQueue.ASendJobToQueue

Base class for sending jobs to transports
Наследование: ISendJobToQueue
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
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