/// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="logger"></param>
 /// <param name="hostEnviroment"></param>
 /// <param name="context"></param>
 public AdministrationController(ILogger <AdministrationController> logger, IHubContext <CartAccWorkHub> hub,
                                 IClientUpdateService clientUpdateService, IDataService dataService, IConnectedUserProvider provider)
 {
     Logger                = logger;
     WorkHub               = hub;
     ClientUpdate          = clientUpdateService;
     DataService           = dataService;
     ConnectedUserProvider = provider;
 }
Exemplo n.º 2
0
 public ClientUpdateReceiver(IClientUpdateService clientUpdateService, IOptions <RabbitMqConfiguration> rabbitMqOptions)
 {
     _hostname            = rabbitMqOptions.Value.Hostname;
     _queueName           = rabbitMqOptions.Value.QueueName;
     _username            = rabbitMqOptions.Value.UserName;
     _password            = rabbitMqOptions.Value.Password;
     _clientUpdateService = clientUpdateService;
     InitializeRabbitMqListener();
 }
Exemplo n.º 3
0
 public ClientController(ILogger <ClientController> logger, IMapper mapper, IClientCreateService clientCreateService, IClientGetService clientGetService, IClientUpdateService clientUpdateService)
 {
     this.Logger = logger;
     this.ClientCreateService = clientCreateService;
     this.ClientGetService    = clientGetService;
     this.ClientUpdateService = clientUpdateService;
     this.Mapper = mapper;
 }
Exemplo n.º 4
0
 public UpdateController(IClientUpdateService updateService)
 {
     _updateService = updateService;
 }