public void WorkWrongAgainAction(object objArgs) { //工作处理单个月份 WorkWrongAgainArgs workWrongAgainArgs = objArgs as WorkWrongAgainArgs; //数包装器 HttpWrongInfo httpWrongInfo = workWrongAgainArgs.HttpWrongInfo; //参数分解 ThreadCounter treadCounter = workWrongAgainArgs.ThreadCounter; //参数分解 try { AlbumWorkManager albumClawWorkManager = new AlbumWorkManager(); albumClawWorkManager.GetOneAlbumAllSong(httpWrongInfo.AlbumUrl); sqlExecute.Update_XM_HttpWrongByWrongId(httpWrongInfo); threadCounter.writerCounter("fcAdd"); //完成 计数 threadCounter.writerCounter("tcSub"); //释放线程数 } catch (Exception ex) { threadCounter.writerCounter("tcSub"); //释放线程数 threadCounter.writerCounter("ecAdd"); //错误 计数 LogNet.LogBLL.Info("XM_AlbumClawWorkAction", ex); return; } }
public WorkWrongAgainArgs(ThreadCounter treadCounter, HttpWrongInfo httpWrongInfo) { this.ThreadCounter = treadCounter; this.HttpWrongInfo = httpWrongInfo; }