https://github.com/nkz-soft/nkzsoft.service.configuration.masstransit.rabbitmq
Provides the configuration for MassTransit in a microservices architecture
https://github.com/nkz-soft/nkzsoft.service.configuration.masstransit.rabbitmq
csharp dotnet-core masstransit message-broker microservices nuget-package
Last synced: 3 months ago
JSON representation
Provides the configuration for MassTransit in a microservices architecture
- Host: GitHub
- URL: https://github.com/nkz-soft/nkzsoft.service.configuration.masstransit.rabbitmq
- Owner: nkz-soft
- License: mit
- Created: 2022-10-17T16:55:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-23T01:56:41.000Z (10 months ago)
- Last Synced: 2025-01-11T14:45:29.789Z (9 months ago)
- Topics: csharp, dotnet-core, masstransit, message-broker, microservices, nuget-package
- Language: C#
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NKZSoft.Service.Configuration.MassTransit.RabbitMq
[](https://www.nuget.org/packages/NKZSoft.Service.Configuration.MassTransit.RabbitMq/)
Provides the configuration for MassTransit in a microservices architecture
## Using
```csharp
public static IServiceCollection AddMessageBroker(
this IServiceCollection services, IConfiguration configuration)
{
services.AddMassTransit(configuration, AddConsumers, AddReceiveEndpoints);
return services;
}private static void AddConsumers(IBusRegistrationConfigurator configurator)
{
}private static void AddReceiveEndpoints(IRabbitMqBusFactoryConfigurator busFactoryConfigurator, IRegistrationContext context)
{
}
```### JSON appsettings.json configuration
```json
{
"ConnectionStrings": {
"RabbitMqConnection": {
"ConnectionString": "rabbitmq://rabbitmq:rabbitmq@localhost:5672"
}
}
}
```