示例#1
0
 public ServiceRunner(ServiceCenter center, ServiceArgs args, IService service)
 {
     this.center  = center;
     this.args    = args;
     this.service = service;
     this.isReady = false;
 }
示例#2
0
        internal static AnyLogger _GetInstance()
        {
            if (null == AnyLogger.instance)
            {
                var center = ServiceCenter.Center();
                AnyLogger.instance = new AnyLogger(center._LogType, center._LogLevel);
            }

            return(AnyLogger.instance);
        }
示例#3
0
        /// <summary>
        /// 开始任务。
        /// </summary>
        /// <returns>返回开始的任务。</returns>
        public AsyncTask Start()
        {
            this.center = ServiceCenter.Center();
            var task = _SearchValidTaskFrom(this);

            if (null != task)
            {
                _StartTask(task);
            }

            return(this);
        }
示例#4
0
 internal virtual void _Install(ServiceCenter center)
 {
 }