/// <summary> /// Asynchronously calls the CloseSession service. /// </summary> public virtual IAsyncResult BeginCloseSession(CloseSessionMessage 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.CloseSessionRequest); } catch (Exception e) { throw CreateSoapFault(message.CloseSessionRequest, e); } }
/// <summary> /// The operation contract for the CloseSession service. /// </summary> public virtual CloseSessionResponseMessage CloseSession(CloseSessionMessage request) { CloseSessionResponse response = null; try { // OnRequestReceived(message.CloseSessionRequest); SetRequestContext(RequestEncoding.Xml); response = (CloseSessionResponse)CloseSession(request.CloseSessionRequest); // OnResponseSent(response); return new CloseSessionResponseMessage(response); } catch (Exception e) { Exception fault = CreateSoapFault(request.CloseSessionRequest, e); // OnResponseFaultSent(fault); throw fault; } }
/// <summary> /// The operation contract for the CloseSession service. /// </summary> public virtual CloseSessionResponseMessage CloseSession(CloseSessionMessage request) { try { SetRequestContext(RequestEncoding.Xml); CloseSessionResponse response = (CloseSessionResponse)CloseSession(request.CloseSessionRequest); return new CloseSessionResponseMessage(response); } catch (Exception e) { throw CreateSoapFault(request.CloseSessionRequest, e); } }
public CloseSessionResponseMessage CloseSession(CloseSessionMessage request) { throw new NotImplementedException(); }