Exemplo n.º 1
0
        internal static AnyLogger _GetInstance()
        {
            if (null == AnyLogger.instance)
            {
                var center = ServiceCenter.Center();
                AnyLogger.instance = new AnyLogger(center._LogType, center._LogLevel);
            }

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

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

            return(this);
        }