Inheritance: IServiceMessage
Exemplo n.º 1
0
        /// <summary>
        /// Asynchronously calls the RegisterNodes service.
        /// </summary>
        public virtual IAsyncResult BeginRegisterNodes(RegisterNodesMessage 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.RegisterNodesRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.RegisterNodesRequest, e);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// The operation contract for the RegisterNodes service.
        /// </summary>
        public virtual RegisterNodesResponseMessage RegisterNodes(RegisterNodesMessage request)
        {
            RegisterNodesResponse response = null;

            try
            {
                // OnRequestReceived(message.RegisterNodesRequest);

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