예제 #1
0
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            // 注册依赖入口
            DependencyRegister.Register();

            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new Service1()
            };
            ServiceBase.Run(ServicesToRun);
        }
예제 #2
0
 private void Init()
 {
     _logger = DependencyRegister.Resolve <ILog>();
 }