NServiceBus.ConfigureForwarding.ForwardReceivedMessagesTo C# (CSharp) Method

ForwardReceivedMessagesTo() public static method

Sets the address to which received messages will be forwarded.
public static ForwardReceivedMessagesTo ( this config, string address ) : void
config this The instance to apply the settings to.
address string The address to forward successfully processed messages to.
return void
        public static void ForwardReceivedMessagesTo(this EndpointConfiguration config, string address)
        {
            Guard.AgainstNull(nameof(config), config);
            Guard.AgainstNullAndEmpty(nameof(address), address);
            config.Settings.Set(SettingsKey, address);
        }
ConfigureForwarding