コード例 #1
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: zryska/UA-.NET
        /// <summary>
        /// Invokes the TestStackEx service.
        /// </summary>
        public IServiceResponse TestStackEx(IServiceRequest incoming)
        {
            TestStackExResponse response = null;

            TestStackExRequest request = (TestStackExRequest)incoming;

            CompositeTestType output = null;

            response = new TestStackExResponse();

            response.ResponseHeader = ServerInstance.TestStackEx(
               request.RequestHeader,
               request.TestId,
               request.Iteration,
               request.Input,
               out output);

            response.Output = output;

            return response;
        }
コード例 #2
0
ファイル: Opc.Ua.Messages.cs プロジェクト: zryska/UA-.NET
 /// <summary>
 /// Initializes the message with the body.
 /// </summary>
 public TestStackExResponseMessage(TestStackExResponse TestStackExResponse)
 {
     this.TestStackExResponse = TestStackExResponse;
 }
コード例 #3
0
ファイル: Opc.Ua.Messages.cs プロジェクト: zryska/UA-.NET
        /// <summary>
        /// Initializes the message with a service fault.
        /// </summary>
        public TestStackExResponseMessage(ServiceFault ServiceFault)
        {
            this.TestStackExResponse = new TestStackExResponse();

            if (ServiceFault != null)
            {
                this.TestStackExResponse.ResponseHeader = ServiceFault.ResponseHeader;
            }
        }
コード例 #4
0
ファイル: Opc.Ua.Messages.cs プロジェクト: zryska/UA-.NET
        /// <summary cref="IServiceMessage.CreateResponse" />
        public object CreateResponse(IServiceResponse response)
        {
            TestStackExResponse body = response as TestStackExResponse;

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

            return new TestStackExResponseMessage(body);
        }