C# Класс NServiceBus.DelayedDeliveryOptionExtensions

Provides ways for the end user to request delayed delivery of their messages.
Показать файл Открыть проект

Открытые методы

Метод Описание
DelayDeliveryWith ( this options, System.TimeSpan delay ) : void

Delays the delivery of the message with the specified delay.

DoNotDeliverBefore ( this options, DateTimeOffset at ) : void

Requests that the message should not be delivered before the specified time.

GetDeliveryDate ( this options ) : DateTimeOffset?

Returns the delivery date configured by using DoNotDeliverBefore.

GetDeliveryDelay ( this options ) : TimeSpan?

Returns the configured delivery delay by using DelayDeliveryWith.

Описание методов

DelayDeliveryWith() публичный статический Метод

Delays the delivery of the message with the specified delay.
public static DelayDeliveryWith ( this options, System.TimeSpan delay ) : void
options this The options being extended.
delay System.TimeSpan The requested delay.
Результат void

DoNotDeliverBefore() публичный статический Метод

Requests that the message should not be delivered before the specified time.
public static DoNotDeliverBefore ( this options, DateTimeOffset at ) : void
options this The options being extended.
at DateTimeOffset The time when this message should be made available.
Результат void

GetDeliveryDate() публичный статический Метод

Returns the delivery date configured by using DoNotDeliverBefore.
public static GetDeliveryDate ( this options ) : DateTimeOffset?
options this The options being extended.
Результат DateTimeOffset?

GetDeliveryDelay() публичный статический Метод

Returns the configured delivery delay by using DelayDeliveryWith.
public static GetDeliveryDelay ( this options ) : TimeSpan?
options this The options being extended.
Результат TimeSpan?