/// <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; }
/// <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; }
/// <summary> /// Initializes the message with the body. /// </summary> public RegisterServerResponseMessage(RegisterServerResponse RegisterServerResponse) { this.RegisterServerResponse = RegisterServerResponse; }
/// <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; } }
/// <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); }