NServiceBus.DelayedDeliveryOptionExtensions.GetDeliveryDate C# (CSharp) Method

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?
        public static DateTimeOffset? GetDeliveryDate(this SendOptions options)
        {
            DoNotDeliverBefore deliveryDate;
            options.GetExtensions().TryGetDeliveryConstraint(out deliveryDate);

            return deliveryDate?.At;
        }
    }