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

CreateResponse() public method

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

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

            return new AddReferencesResponseMessage(body);
        }
        #endregion