NServiceBus.RoutingOptionExtensions.RouteReplyToAnyInstance C# (CSharp) Method

RouteReplyToAnyInstance() public static method

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

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