Skip to content

mauroservienti/Mattox.NServiceBus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)