Exemplo n.º 1
0
 public BrokerHub(MqttClientServiceProvider provider, BrokerCommands brokerCommands, ZigbeeCommands zigbeeCommands, IMediator mediator)
 {
     _mqttClientService = provider.MqttClientService;
     _brokerCommands    = brokerCommands;
     _zigbeeCommands    = zigbeeCommands;
     _mediator          = mediator;
 }
Exemplo n.º 2
0
 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;
        }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 7
0
 public TestCommand(
     IRepository <AssetData> repo
     , IMqttService mqttService
     , IMqttClientService mqttClient
     )
 {
     _repo        = repo;
     _mqttService = mqttService;
     _mqttClient  = mqttClient;
 }
Exemplo n.º 8
0
        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");
        }
Exemplo n.º 9
0
 public AgentHub(MqttClientServiceProvider mqttClientServiceProvider)
 {
     mqttClientService = mqttClientServiceProvider.MqttClientService;
 }
Exemplo n.º 10
0
 public MqttService(MqttClientServiceProvider provider)
 {
     mqttClientService = provider.MqttClientService;
 }
Exemplo n.º 11
0
 public ExtarnalService(MqttClientServiceProvider provider)
 {
     mqttClientService = provider.MqttClientService;
 }
Exemplo n.º 12
0
 public CapabilityService(IMqttClientService mqttClientService)
 {
     _mqttClientService = mqttClientService;
 }
Exemplo n.º 13
0
 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));
 }
Exemplo n.º 15
0
 public BrokerHub(MqttClientServiceProvider provider, BrokerCommandTopics commandTopics)
 {
     mqttClientService = provider.MqttClientService;
     CommandTopics     = commandTopics;
 }
Exemplo n.º 16
0
 public MqttClientServiceProvider(IMqttClientService mqttClientService)
 {
     MqttClientService = mqttClientService;
 }
Exemplo n.º 17
0
 public MqttEventBusDispatcher(MqttClientServiceProvider provider)
 {
     _mqttClientService = provider.MqttClientService;
 }
Exemplo n.º 18
0
 private void Construct(IMqttClientService mqttClientService, ConsoleMessageViewController.Factory factory)
 {
     m_MqttClient = mqttClientService;
     m_Factory    = factory;
 }