private static void Main(string[] args) { XmlConfigurator.Configure(); Logger.Info("Started Mqtt2Sharp Tsdb Console Application"); var service = new Mqtt2DbService(); service.Init(); Console.ReadLine(); service.Stop(); Logger.Info("Stopped Mqtt2Sharp Tsdb Console Application"); }
protected override void OnStop() { Logger.Info("Stopping Mqtt to Sharp TSDB service"); _service?.Stop(); Stop(); }