feat: Add RabbitMQ
This commit is contained in:
parent
d3034c1a06
commit
8902080336
15 changed files with 2292 additions and 2069 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using BMA.EHR.Application.Common.Interfaces;
|
||||
using BMA.EHR.Application.Repositories;
|
||||
using BMA.EHR.Infrastructure.MessageQueue;
|
||||
using BMA.EHR.Infrastructure.Persistence;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Configuration;
|
||||
|
|
@ -9,6 +10,15 @@ namespace BMA.EHR.Infrastructure
|
|||
{
|
||||
public static class InfrastructureServiceRegistration
|
||||
{
|
||||
public static IServiceCollection AddMessageQueue(this IServiceCollection services)
|
||||
{
|
||||
services.AddTransient<RabbitMQConnection>();
|
||||
services.AddTransient<RabbitMQProducer>();
|
||||
services.AddTransient<RabbitMQConsumer>();
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddLeavePersistence(this IServiceCollection services,
|
||||
IConfiguration configuration)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue