internal ThreadParam(ServiceThreadConfigurationElement ele) { this.name = ele.Name; this.description = ele.Description; this.activateDuration = ele.ActivateDuration; this.disposeDuration = ele.DisposeDuration; this.canForceStop = ele.CanForceStop; this.batchCount = ele.BatchCount; this.useDefaultLogger = ele.UseDefaultLogger; this.ownerServiceName = ele.OwnerServiceName; try { this.threadTask = (ThreadTaskBase)ele.CreateInstance(); } catch (Exception ex) { this.Log.Write(string.Format("创建线程任务\"{0}\"出错", this.Name), ex, ServiceLogEventID.SERVICEBASE_CREATETHREADPARAM); } }