NServiceBus.RoutingOptionExtensions.RouteReplyToThisInstance C# (CSharp) Method

RouteReplyToThisInstance() public static method

Instructs the receiver to route the reply for this message to this instance.
public static RouteReplyToThisInstance ( this options ) : void
options this Option being extended.
return void
        public static void RouteReplyToThisInstance(this SendOptions options)
        {
            Guard.AgainstNull(nameof(options), options);

            options.Context.GetOrCreate<ApplyReplyToAddressBehavior.State>()
                .Option = ApplyReplyToAddressBehavior.RouteOption.RouteReplyToThisInstance;
        }