NServiceBoXes Endpoints simplify NServiceBus endpoints configuration by providing for supported transports a corresponding NServiceBoXes endpoint with sensible defaults. NServiceBoXes.Endpoints.RabbitMQ
is the NServiceBoXes endpoint for the NServiceBus RabbitMQ transport.
Creating and starting a RabbitMQ endpoint is as easy as:
var endpoint = new RabbitMqEndpoint("my-endpoint", connectionString: "host=localhost");
var endpointInstance = await endpoint.Start();
NServiceBoXes endpoints can be configured through the Microsoft.Extensions.Configuration
. The above-presented RabbitMQ endpoint can be configured as follows:
Host.CreateDefaultBuilder()
.UseNServiceBus(hostBuilderContext => new RabbitMqEndpoint(hostBuilderContext.Configuration))
.Build();
The endpoint will retrieve values from the IConfiguration
object instance.
For more information on all the supported endpoints, refer to the Mattox.NServiceBus repository.
- Pre-releases are available on Feedz.io (public feed)
- Releases on NuGet.org
Icon — Box by Angriawan Ditya Zulkarnain from Noun Project (CC BY 3.0)