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

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