Opc.Ua.OpenSecureChannelMessage.CreateResponse C# (CSharp) Method

CreateResponse() public method

public CreateResponse ( IServiceResponse response ) : object
response IServiceResponse
return object
        public object CreateResponse(IServiceResponse response)
        {
            OpenSecureChannelResponse body = response as OpenSecureChannelResponse;

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

            return new OpenSecureChannelResponseMessage(body);
        }
        #endregion