/// <summary> /// Invokes the TestStack service. /// </summary> public IServiceResponse TestStack(IServiceRequest incoming) { TestStackResponse response = null; TestStackRequest request = (TestStackRequest)incoming; Variant output = new Variant(); response = new TestStackResponse(); response.ResponseHeader = ServerInstance.TestStack( request.RequestHeader, request.TestId, request.Iteration, request.Input, out output); response.Output = output; return response; }
/// <summary> /// Initializes the message with the body. /// </summary> public TestStackResponseMessage(TestStackResponse TestStackResponse) { this.TestStackResponse = TestStackResponse; }
/// <summary> /// Initializes the message with a service fault. /// </summary> public TestStackResponseMessage(ServiceFault ServiceFault) { this.TestStackResponse = new TestStackResponse(); if (ServiceFault != null) { this.TestStackResponse.ResponseHeader = ServiceFault.ResponseHeader; } }
/// <summary cref="IServiceMessage.CreateResponse" /> public object CreateResponse(IServiceResponse response) { TestStackResponse body = response as TestStackResponse; if (body == null) { body = new TestStackResponse(); body.ResponseHeader = ((ServiceFault)response).ResponseHeader; } return new TestStackResponseMessage(body); }