public BrokerHub(MqttClientServiceProvider provider, BrokerCommands brokerCommands, ZigbeeCommands zigbeeCommands, IMediator mediator) { _mqttClientService = provider.MqttClientService; _brokerCommands = brokerCommands; _zigbeeCommands = zigbeeCommands; _mediator = mediator; }
public ConsoleHostedService( IMqttClientService executeService, IMessageFromFileService messageFromFileService) { this.mqttClientService = executeService; this.messageFromFileService = messageFromFileService; }
public MessageFromFileService( ILogger <MessageFromFileService> logger, IMqttClientService mqttClientService) { this.logger = logger; this.mqttClientService = mqttClientService; }
public MqttClientController(ILogger <MqttClientController> logger, MqttClientServiceProvider mqttProvider) { _logger = logger; _mqttClient = mqttProvider.MqttClientService; _mqttClient.PublishedTopic += _mqttClient_PublishedTopic; _mqttClient.SubscribededTopic += _mqttClient_SubscribededTopic; }
public MqttConsumer(MqttClientServiceProvider provider, ITelegramBotService telegramBotService, ILogger <MqttConsumer> logger) { this.readerWriterLockSlim = new ReaderWriterLockSlim(); this.mqttClientService = provider.MqttClientService; this.telegramBotService = telegramBotService; this.logger = logger; this.topicHandlers.Add("BOILER_STATISTICS/JSON", ProcessCycleStatistics); this.topicHandlers.Add("BOILER_LOG/JSON", ProcessLogInfo); }
public HomeController( IMqttClientService mqttClient, CalculationContext dbContext, SortSourceByQueryParameterHelper <Message> sortJobsByQueryParameter ) { _mqttClient = mqttClient; _dbContext = dbContext; _sortJobsByQueryParameter = sortJobsByQueryParameter; }
public TestCommand( IRepository <AssetData> repo , IMqttService mqttService , IMqttClientService mqttClient ) { _repo = repo; _mqttService = mqttService; _mqttClient = mqttClient; }
public DeviceService(IMqttClientService mqttClientService) { _mqttClientService = mqttClientService; string connectionString = "mongodb+srv://Parhim:[email protected]/DevicesProject?retryWrites=true&w=majority"; var connection = new MongoUrlBuilder(connectionString); // получаем клиента для взаимодействия с базой данных MongoClient client = new MongoClient(connectionString); // получаем доступ к самой базе данных IMongoDatabase database = client.GetDatabase(connection.DatabaseName); // получаем доступ к файловому хранилищу gridFS = new GridFSBucket(database); // обращаемся к коллекции Products Devices = database.GetCollection <Device>("Devices"); }
public AgentHub(MqttClientServiceProvider mqttClientServiceProvider) { mqttClientService = mqttClientServiceProvider.MqttClientService; }
public MqttService(MqttClientServiceProvider provider) { mqttClientService = provider.MqttClientService; }
public ExtarnalService(MqttClientServiceProvider provider) { mqttClientService = provider.MqttClientService; }
public CapabilityService(IMqttClientService mqttClientService) { _mqttClientService = mqttClientService; }
public MqttPublisher(MqttClientServiceProvider provider) { mqttClientService = provider.MqttClientService; }
public MqttEmailScheduler(IHttpContextAccessor httpContextAccessor, IMqttClientService mqttClientService) { _httpContextAccessor = httpContextAccessor ?? throw new ArgumentNullException(nameof(httpContextAccessor)); _mqttClientService = mqttClientService ?? throw new ArgumentNullException(nameof(mqttClientService)); }
public BrokerHub(MqttClientServiceProvider provider, BrokerCommandTopics commandTopics) { mqttClientService = provider.MqttClientService; CommandTopics = commandTopics; }
public MqttClientServiceProvider(IMqttClientService mqttClientService) { MqttClientService = mqttClientService; }
public MqttEventBusDispatcher(MqttClientServiceProvider provider) { _mqttClientService = provider.MqttClientService; }
private void Construct(IMqttClientService mqttClientService, ConsoleMessageViewController.Factory factory) { m_MqttClient = mqttClientService; m_Factory = factory; }