예제 #1
0
 protected override void OnStart(string[] args)
 {
     XmlConfigurator.Configure();
     Logger.Info("Starting Sharp TSDB service");
     _service = new DbService();
     _service.Init();
 }
예제 #2
0
파일: Program.cs 프로젝트: RF77/sharp-tsdb
        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");
        }