static void Main(string[] args) { MqttProcessingApp app = new MqttProcessingApp(); app.LogMsgEvent += App_LogMsgEvent; app.Run(); System.Console.WriteLine("Hit any key to quit"); System.Console.ReadLine(); app.Stop(); }
protected override void OnStop() { app.Stop(); app = null; }
protected override void OnStart(string[] args) { app = new MqttProcessingApp(); app.LogMsgEvent += App_LogMsgEvent; app.Run(); }