C# Class NServiceBus.DelayedDeliveryOptionExtensions

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

Méthodes publiques

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

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

DoNotDeliverBefore() public static méthode

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

GetDeliveryDate() public static méthode

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

GetDeliveryDelay() public static méthode

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