Escendit.AspNetCore.Builder.RabbitMQ.StreamProtocol is a NuGet package that provides the ability to register
StreamSystem
.
To install Escendit.AspNetCore.Builder.RabbitMQ.StreamProtocol, run the following command in the Package Manager Console:
Install-Package Escendit.AspNetCore.Builder.RabbitMQ.StreamProtocol
There are several ways to register contracts that can be used in an application:
WebApplication
.CreateBuilder()
.AddRabbitMqStreamSystemAsDefault(...)
var streamSystem = serviceProvider.GetRequiredKeyedService<StreamSystem>("Default");
var streamSystem = serviceProvider.GetRequiredServiceByKey<object?, StreamSystem>("Default");
WebApplication
.CreateBuilder()
.AddRabbitMqStreamSystem("name", ...)
var streamSystem = serviceProvider.GetRequiredKeyedService<StreamSystem>("name");
var streamSystem = serviceProvider.GetRequiredServiceByKey<object?, StreamSystem>("name");
If you'd like to contribute to rabbitmq-dotnet-extensions, please fork the repository and make changes as you'd like. Pull requests are warmly welcome.