Exemple #1
0
        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");
        }
Exemple #2
0
 protected override void OnStop()
 {
     Logger.Info("Stopping Mqtt to Sharp TSDB service");
     _service?.Stop();
     Stop();
 }