HTTPVNext Channel

Project Hosting
NuGet Package NServiceBus.Gateway.Channels.HttpVNext (1.x) | License
This is a community maintained project. License and support are independent of Particular Software.
Target NServiceBus Version: 7.x

This channel allows the use of Gateways where a gateway endpoint may be behind a reverse proxy such as NGINX or CloudFlare, or in any other environment where HTTP headers could be modified.

To use this channel install the mentioned NuGet and configure the gateway to use it when receiving messages:

var gatewayConfig = endpointConfiguration.Gateway();
gatewayConfig.ChannelFactories(s => new HttpVNextChannelSender(), r => new HttpVNextChannelReceiver());

gatewayConfig.AddReceiveChannel("http://Headquarter.mycorp.com/", "httpVNext");

The final step is to configure the gateway to use the new channel when transmitting messages:

var gatewayConfig = endpointConfiguration.Gateway();
gatewayConfig.ChannelFactories(s => new HttpVNextChannelSender(), r => new HttpVNextChannelReceiver());

gatewayConfig.AddSite("SiteA", "http://SiteA.mycorp.com");

Last modified