public ListsManager(RequestsRepository requestsRepository, ListsRepository listsRepository, ProjectsRepository projectsRepository, RabbitMqTopicManager rabbitMq) : base(requestsRepository) { _requestsRepository = requestsRepository; _listsRepository = listsRepository; _projectsRepository = projectsRepository; }
public BrokerMessagesHandler(RabbitMqTopicManager rabbitMq, IMapper mapper, IServiceProvider serviceProvider) : base(rabbitMq) { _mapper = mapper; _serviceProvider = serviceProvider; _projectsMessageHandler = new ProjectsMessageHandler(serviceProvider, mapper); _projectMembersMessageHandler = new ProjectMembersMessageHandler(serviceProvider, mapper); _labelsMessageHandler = new LabelsMessageHandler(serviceProvider, mapper); _tasksMessageHandler = new TasksMessageHandler(serviceProvider, mapper); }
private void InitializeRabbitMQ(IServiceCollection services) { string host = Configuration.GetValue <string>("RabbitMQ:Host"); int port = Configuration.GetValue <int>("RabbitMQ:Port"); string username = Configuration.GetValue <string>("RabbitMQ:Username"); string password = Configuration.GetValue <string>("RabbitMQ:Password"); var rabbit = new RabbitMqTopicManager(host, port, username, password); services.AddSingleton <RabbitMqTopicManager>(rabbit); services.AddSingleton <BrokerMessagesHandler, BrokerMessagesHandler>(); }
public BrokerMessagesHandler(RabbitMqTopicManager rabbitMq, IMapper mapper, IServiceProvider serviceProvider) : base(rabbitMq) { _mapper = mapper; _serviceProvider = serviceProvider; _usersMessagesHandler = new UsersMessageHandler(serviceProvider, mapper); _projectsMessageHandler = new ProjectsMessageHandler(serviceProvider, mapper); _projectMembersMessageHandler = new ProjectMembersMessageHandler(serviceProvider, mapper); _listsMessageHandler = new ListsMessageHandler(serviceProvider, mapper); _labelsMessageHandler = new LabelsMessageHandler(serviceProvider, mapper); _transactionHanlder = new TransactionMessagesHandler(serviceProvider, mapper); }
public MoveTaskTransactionHandler(ListsRepository listsRepository, ProjectsRepository projectsRepository, TransactionsRepository transactionsRepository, RequestsRepository requestsRepository, RabbitMqTopicManager rabbit) : base(requestsRepository, transactionsRepository) { _listsRepository = listsRepository; _projectsRepository = projectsRepository; }
public OutboxMessagesSender(IServiceProvider serviceProvider, RabbitMqTopicManager rabbitMq) : base(serviceProvider, rabbitMq) { }
public BrokerMessagesHandler(RabbitMqTopicManager rabbitMq, IMapper mapper, IServiceProvider serviceProvider) : base(rabbitMq) { _mapper = mapper; _serviceProvider = serviceProvider; }