// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public async void Configure(
            IApplicationBuilder app,
            IWebHostEnvironment env,
            ISignalRClient signalRClient,
            IRestClient restClient,
            IHomeAutomationMqttServer homeAutomationMqttServer,
            IMediator mediator,
            IOptions <Configuration> config,
            ITelegramLogger telegramLogger,
            ILokiLogger lokiLogger)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }

            app.UseHttpsRedirection();

            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllers();
            });

            await app.RunSignalRClientAsync(_configuration, signalRClient);

            await app.RunMqttServerAsync(
                homeAutomationMqttServer,
                restClient,
                mediator,
                signalRClient,
                _configuration,
                telegramLogger,
                lokiLogger);
        }
 public LightPointHardResetEventHandler(IHomeAutomationMqttServer mqttServer)
 {
     _mqttServer = mqttServer;
 }
 public ReceiveLightPointEventHandler(IHomeAutomationMqttServer mqttServer)
 {
     _mqttServer = mqttServer;
 }