public ServiceRunner(ServiceCenter center, ServiceArgs args, IService service) { this.center = center; this.args = args; this.service = service; this.isReady = false; }
internal static AnyLogger _GetInstance() { if (null == AnyLogger.instance) { var center = ServiceCenter.Center(); AnyLogger.instance = new AnyLogger(center._LogType, center._LogLevel); } return(AnyLogger.instance); }
/// <summary> /// 开始任务。 /// </summary> /// <returns>返回开始的任务。</returns> public AsyncTask Start() { this.center = ServiceCenter.Center(); var task = _SearchValidTaskFrom(this); if (null != task) { _StartTask(task); } return(this); }
internal virtual void _Install(ServiceCenter center) { }