Mattox.NServiceBus.RabbitMQ

APACHE-2.0 License

Stars
0

NServiceBoXes.Endpoints.RabbitMQ

NServiceBoXes Endpoints simplify NServiceBus endpoints configuration by providing for supported transports a corresponding NServiceBoXes endpoint with sensible defaults. NServiceBoXes.Endpoints.RabbitMQ is the NServiceBoXes endpoint for the NServiceBus RabbitMQ transport.

Creating and starting a RabbitMQ endpoint is as easy as:

var endpoint = new RabbitMqEndpoint("my-endpoint", connectionString: "host=localhost");
var endpointInstance = await endpoint.Start();

Microsoft configuration extension support

NServiceBoXes endpoints 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.

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)

Related Projects