Mattox.NServiceBus simplifies NServiceBus endpoints configuration by providing for supported transports a corresponding Mattox.NServiceBus endpoint with sensible defaults. Mattox.NServiceBus.AmazonSQS
is the Mattox.NServiceBus endpoint for the NServiceBus AmamzonSQS transport.
Creating and starting an Amazon SQS endpoint is as easy as:
var endpoint = new AmazonSqsEndpoint("my-endpoint");
var endpointInstance = await endpoint.Start();
Mattox.NServiceBus endpoints can be configured through the Microsoft.Extensions.Configuration
. The above-presented Amazon SQS endpoint can be configured as follows:
Host.CreateDefaultBuilder()
.UseNServiceBus(hostBuilderContext => new AmazonSqsEndpoint(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.
- Releases on NuGet.org
- Pre-releases are available on Feedz.io (public feed)
Icon — Box by Angriawan Ditya Zulkarnain from Noun Project (CC BY 3.0)