示例#1
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;

            mqttBroker = new MQTTBroker(1883);
            MQTTProducer.init();

            using (var client = new PersonalSiteContext())
            {
                client.Database.EnsureCreated();
            }
        }
示例#2
0
 static void Main()
 {
     SimpleHTTPServer httpListener = new SimpleHTTPServer("C:\\Users\\dave_\\Desktop\\dist\\", 5555);
     MQTTBroker       mqttBroker   = new MQTTBroker(GlobalHost.ConnectionManager.GetHubContext <QXMonitorHub>().Clients);
 }