C# Class NServiceBus.DelayedDeliveryOptionExtensions

Provides ways for the end user to request delayed delivery of their messages.
Mostrar archivo Open project: Particular/NServiceBus

Public Methods

Method Description
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.

Method Details

DelayDeliveryWith() public static method

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.
return void

DoNotDeliverBefore() public static method

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.
return void

GetDeliveryDate() public static method

Returns the delivery date configured by using DoNotDeliverBefore.
public static GetDeliveryDate ( this options ) : DateTimeOffset?
options this The options being extended.
return DateTimeOffset?

GetDeliveryDelay() public static method

Returns the configured delivery delay by using DelayDeliveryWith.
public static GetDeliveryDelay ( this options ) : TimeSpan?
options this The options being extended.
return TimeSpan?