NServiceBus.ImmediateDispatchOptionExtensions.RequireImmediateDispatch C# (CSharp) Method

RequireImmediateDispatch() public static method

Requests the messsage to be dispatched to the transport immediately. This means that the message is ACKed by the transport as soon as the call to send returns. The message will not be enlisted in any current receive transaction even if the transport support it.
public static RequireImmediateDispatch ( this options ) : void
options this The options being extended.
return void
        public static void RequireImmediateDispatch(this ExtendableOptions options)
        {
            Guard.AgainstNull(nameof(options), options);

            options.GetExtensions().Set(new RoutingToDispatchConnector.State
            {
                ImmediateDispatch = true
            });
        }