Inheritance: IServiceMessage
Ejemplo n.º 1
0
        /// <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);
            }
        }
Ejemplo n.º 2
0
        /// <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;
            }
        }
Ejemplo n.º 3
0
 /// <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);
     }
 }
Ejemplo n.º 4
0
 public CloseSessionResponseMessage CloseSession(CloseSessionMessage request)
 {
     throw new NotImplementedException();
 }