/Mattox.NServiceBus

NServiceBus endpoints made simple

Primary LanguageC#Apache License 2.0Apache-2.0

Mattox.NServiceBus

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

Microsoft configuration extension support

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.

Supported endpoints

How to get it

NOTE

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)