Mattox simplifies NServiceBus endpoints configuration by providing for supported transports a corresponding Mattox endpoint with sensible defaults. For example, creating and starting a RabbitMQ endpoint could be as easy as:
var endpoint = new RabbitMqEndpoint("my-endpoint", connectionString: "host=localhost");
var endpointInstance = await endpoint.Start();
Mattox.NServiceBus 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, refer to the Mattox.NServiceBus configuration options docmentation.
- Pre-releases are available on Feedz.io (public feed)
- Releases on NuGet.org
This package is not meant to be used directly. It serves as a base package for other Mattox.NServiceBus Endpoints, such as Mattox.NServiceBus.AmazonSQS or Mattox.NServiceBus.Endpoints.RabbitMQ.
Icon — Box by Angriawan Ditya Zulkarnain from Noun Project (CC BY 3.0)