public Startup(IConfiguration configuration) { Configuration = configuration; mqttBroker = new MQTTBroker(1883); MQTTProducer.init(); using (var client = new PersonalSiteContext()) { client.Database.EnsureCreated(); } }
static void Main() { SimpleHTTPServer httpListener = new SimpleHTTPServer("C:\\Users\\dave_\\Desktop\\dist\\", 5555); MQTTBroker mqttBroker = new MQTTBroker(GlobalHost.ConnectionManager.GetHubContext <QXMonitorHub>().Clients); }