public CancelRequest ( |
||
item | ||
messageText | string | |
autoSave | bool | |
리턴 | bool |
protected void OnError(QueueMessageManager manager, string message = null) { if (message == null) message = manager.ErrorMessage; // clear out the message // don't do this manager.CancelRequest(messageText: "Failed: " + message,autoSave: true); LogManager.Current.LogError(message); // send email //AppUtils.SendAdminEmail("MPWFQMM Failure", errorMessage); }
protected void OnError(QueueMessageManager manager, string message = null, Exception ex = null) { if (message == null) message = manager.ErrorMessage; manager.CancelRequest(messageText: "Queue Error: " + message); manager.Save(); string details = null; if (ex != null) details = ex.Source + "\r\n" + ex.StackTrace; //LogManager.Current.LogError(message, details); // send email //AppUtils.SendAdminEmail("MPWFQMM Failure", errorMessage); }