/// <summary> /// 创建服务控制容器:根据指定定时配置及线程方法 /// </summary> /// <param name="ts">定时间隔</param> /// <param name="method">线程服务要执行的具体代码委托</param> /// <returns></returns> public static ThreadSvrUtil CreateThreadSvr(TimeSpan ts, ThreadStart method) { return(ThreadSvrUtil.CreateSvrUtil(ts, method)); }
/// <summary> /// 创建服务控制容器:根据指定毫秒及线程方法 /// </summary> /// <param name="Milliseconds"></param> /// <param name="method"></param> /// <returns></returns> public static ThreadSvrUtil CreateThreadSvr(int Milliseconds, ThreadStart method) { return(ThreadSvrUtil.CreateSvrUtil(Milliseconds, method)); }
/// <summary> /// 创建服务控制容器:根据指定定时配置及线程方法 /// </summary> /// <param name="appconfigExp">定时配置键值</param> /// <param name="method">线程服务要执行的具体代码委托</param> public static ThreadSvrUtil CreateThreadSvrForExp(string appconfigExp, ThreadStart method) { return(ThreadSvrUtil.CreateSvrUtilByExp(appconfigExp, method)); }