Ejemplo n.º 1
0
 public MqttStartupFilter(IServiceProvider serviceProvider, IOptions <SiteConfig> option, IHostApplicationLifetime appLifetime, IHubContext <ChatHub> chatHub)
 {
     _chatHub         = chatHub;
     _serviceProvider = serviceProvider;
     _appLifetime     = appLifetime;
     _option          = option.Value.MqttOption;
 }
Ejemplo n.º 2
0
 public MqttHelper(ISchoolBusBusines schoolBusBusines, IOptions <SiteConfig> option, ILoggerFactory loggerFactory)
 {
     _logger           = loggerFactory.CreateLogger("MqttHelper");
     _schoolBusBusines = schoolBusBusines;
     _option           = option.Value.MqttOption;
 }