Inheritance: IServiceMessage
Exemplo n.º 1
0
        /// <summary>
        /// Asynchronously calls the AddNodes service.
        /// </summary>
        public virtual IAsyncResult BeginAddNodes(AddNodesMessage 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.AddNodesRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.AddNodesRequest, e);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// The operation contract for the AddNodes service.
        /// </summary>
        public virtual AddNodesResponseMessage AddNodes(AddNodesMessage request)
        {
            AddNodesResponse response = null;

            try
            {
                // OnRequestReceived(message.AddNodesRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (AddNodesResponse)AddNodes(request.AddNodesRequest);
                // OnResponseSent(response);
                return new AddNodesResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.AddNodesRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
Exemplo n.º 3
0
 /// <summary>
 /// The operation contract for the AddNodes service.
 /// </summary>
 public virtual AddNodesResponseMessage AddNodes(AddNodesMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         AddNodesResponse response = (AddNodesResponse)AddNodes(request.AddNodesRequest);
         return new AddNodesResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.AddNodesRequest, e);
     }
 }
Exemplo n.º 4
0
 public AddNodesResponseMessage AddNodes(AddNodesMessage request)
 {
     throw new NotImplementedException();
 }