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

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

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

            return new CloseSecureChannelResponseMessage(body);
        }