public ListsManager(RequestsRepository requestsRepository,
                     ListsRepository listsRepository, ProjectsRepository projectsRepository,
                     RabbitMqTopicManager rabbitMq) : base(requestsRepository)
 {
     _requestsRepository = requestsRepository;
     _listsRepository    = listsRepository;
     _projectsRepository = projectsRepository;
 }
示例#2
0
        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>();
        }
示例#4
0
        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);
        }
示例#5
0
 public MoveTaskTransactionHandler(ListsRepository listsRepository, ProjectsRepository projectsRepository,
                                   TransactionsRepository transactionsRepository, RequestsRepository requestsRepository, RabbitMqTopicManager rabbit)
     : base(requestsRepository, transactionsRepository)
 {
     _listsRepository    = listsRepository;
     _projectsRepository = projectsRepository;
 }
示例#6
0
 public OutboxMessagesSender(IServiceProvider serviceProvider, RabbitMqTopicManager rabbitMq)
     : base(serviceProvider, rabbitMq)
 {
 }
示例#7
0
 public BrokerMessagesHandler(RabbitMqTopicManager rabbitMq, IMapper mapper, IServiceProvider serviceProvider)
     : base(rabbitMq)
 {
     _mapper          = mapper;
     _serviceProvider = serviceProvider;
 }