Example #1
0
 protected override void OnStart(string[] args)
 {
     XmlConfigurator.Configure();
     Logger.Info("Starting Mqtt to Sharp TSDB service");
     _service = new Mqtt2DbService();
     _service.Init();
 }
Example #2
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");
        }