Esempio n. 1
0
        /// <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;
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public TestStackResponseMessage(TestStackResponse TestStackResponse)
 {
     this.TestStackResponse = TestStackResponse;
 }
Esempio n. 3
0
        /// <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;
            }
        }
Esempio n. 4
0
        /// <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);
        }