/// <summary> /// Asynchronously calls the Cancel service. /// </summary> public virtual IAsyncResult BeginCancel(CancelMessage message, AsyncCallback callback, object callbackData) { try { // check for bad data. if (message == null) throw new ArgumentNullException("message"); // set the request context. SetRequestContext(RequestEncoding.Xml); // create handler. ProcessRequestAsyncResult result = new ProcessRequestAsyncResult(this, callback, callbackData, 0); return result.BeginProcessRequest(SecureChannelContext.Current, message.CancelRequest); } catch (Exception e) { throw CreateSoapFault(message.CancelRequest, e); } }
/// <summary> /// The operation contract for the Cancel service. /// </summary> public virtual CancelResponseMessage Cancel(CancelMessage request) { CancelResponse response = null; try { // OnRequestReceived(message.CancelRequest); SetRequestContext(RequestEncoding.Xml); response = (CancelResponse)Cancel(request.CancelRequest); // OnResponseSent(response); return new CancelResponseMessage(response); } catch (Exception e) { Exception fault = CreateSoapFault(request.CancelRequest, e); // OnResponseFaultSent(fault); throw fault; } }
/// <summary> /// The operation contract for the Cancel service. /// </summary> public virtual CancelResponseMessage Cancel(CancelMessage request) { try { SetRequestContext(RequestEncoding.Xml); CancelResponse response = (CancelResponse)Cancel(request.CancelRequest); return new CancelResponseMessage(response); } catch (Exception e) { throw CreateSoapFault(request.CancelRequest, e); } }
public CancelResponseMessage Cancel(CancelMessage request) { throw new NotImplementedException(); }