Inheritance: IServiceMessage
示例#1
0
        /// <summary>
        /// Asynchronously calls the DeleteNodes service.
        /// </summary>
        public virtual IAsyncResult BeginDeleteNodes(DeleteNodesMessage 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.DeleteNodesRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.DeleteNodesRequest, e);
            }
        }
示例#2
0
        /// <summary>
        /// The operation contract for the DeleteNodes service.
        /// </summary>
        public virtual DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
        {
            DeleteNodesResponse response = null;

            try
            {
                // OnRequestReceived(message.DeleteNodesRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (DeleteNodesResponse)DeleteNodes(request.DeleteNodesRequest);
                // OnResponseSent(response);
                return new DeleteNodesResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.DeleteNodesRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
示例#3
0
 /// <summary>
 /// The operation contract for the DeleteNodes service.
 /// </summary>
 public virtual DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         DeleteNodesResponse response = (DeleteNodesResponse)DeleteNodes(request.DeleteNodesRequest);
         return new DeleteNodesResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.DeleteNodesRequest, e);
     }
 }
示例#4
0
 public DeleteNodesResponseMessage DeleteNodes(DeleteNodesMessage request)
 {
     throw new NotImplementedException();
 }