Mattox.NServiceBus.AmazonSQS

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();

snippet source | anchor

Microsoft configuration extension support

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();

snippet source | anchor

The endpoint will retrieve values from the IConfiguration object instance.

Supported endpoints

For more information on all the supported endpoints, refer to the Mattox.NServiceBus repository.

How to get it


Icon — Box by Angriawan Ditya Zulkarnain from Noun Project (CC BY 3.0)