public static void SendRequest(object request) { UrlSendTask sendTask = request as UrlSendTask; if (sendTask == null) { throw new AbandonedMutexException(" sendTask is null "); } try { bool requestOk = false; string errorMessage = string.Empty; requestOk = SendRequest(sendTask.SendDataUrl, 3000, sendTask.DataOkMessage, out errorMessage); if (requestOk) { SPRecordWrapper.UpdateUrlSuccessSend(sendTask.RecordID, sendTask.SendDataUrl); } else { SPRecordWrapper.UpdateUrlFailedSend(sendTask.RecordID, sendTask.SendDataUrl, errorMessage); } } catch (Exception ex) { SPRecordWrapper.UpdateUrlFailedSend(sendTask.RecordID, sendTask.SendDataUrl, ex.Message); } }