/// <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; }
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(); }
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; }
public UpdateController(IClientUpdateService updateService) { _updateService = updateService; }