Exemplo n.º 1
0
        /// <summary>
        /// Invokes the RegisterServer service.
        /// </summary>
        public IServiceResponse RegisterServer(IServiceRequest incoming)
        {
            RegisterServerResponse response = null;

            RegisterServerRequest request = (RegisterServerRequest)incoming;


            response = new RegisterServerResponse();

            response.ResponseHeader = ServerInstance.RegisterServer(
               request.RequestHeader,
               request.Server);


            return response;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Invokes the RegisterServer service.
        /// </summary>
        public IServiceResponse RegisterServer(IServiceRequest incoming)
        {
            RegisterServerResponse response = null;

            try
            {
                // OnRequestReceived(incoming);

                RegisterServerRequest request = (RegisterServerRequest)incoming;


                response = new RegisterServerResponse();

                response.ResponseHeader = ServerInstance.RegisterServer(
                   request.RequestHeader,
                   request.Server);

            }
            finally
            {
                // OnResponseSent(response);
            }

            return response;
        }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public RegisterServerResponseMessage(RegisterServerResponse RegisterServerResponse)
 {
     this.RegisterServerResponse = RegisterServerResponse;
 }
Exemplo n.º 4
0
        /// <summary>
        /// Initializes the message with a service fault.
        /// </summary>
        public RegisterServerResponseMessage(ServiceFault ServiceFault)
        {
            this.RegisterServerResponse = new RegisterServerResponse();

            if (ServiceFault != null)
            {
                this.RegisterServerResponse.ResponseHeader = ServiceFault.ResponseHeader;
            }
        }
Exemplo n.º 5
0
        /// <summary cref="IServiceMessage.CreateResponse" />
        public object CreateResponse(IServiceResponse response)
        {
            RegisterServerResponse body = response as RegisterServerResponse;

            if (body == null)
            {
                body = new RegisterServerResponse();
                body.ResponseHeader = ((ServiceFault)response).ResponseHeader;
            }

            return new RegisterServerResponseMessage(body);
        }