Exemplo n.º 1
0
 protected override void OnStart(string[] args)
 {
     XmlConfigurator.Configure();
     Logger.Info("Starting Sharp TSDB service");
     _service = new DbService();
     _service.Init();
 }
Exemplo n.º 2
0
        private static void Main(string[] args)
        {
            XmlConfigurator.Configure();
            Logger.Info("Started Sharp Tsdb Console Application");
            var service = new DbService();
            service.Init();

            Console.ReadLine();

            service.Stop();
            Logger.Info("Stopped Sharp Tsdb Console Application");
        }