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

CreateResponse() public method

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

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

            return new HistoryReadResponseMessage(body);
        }
        #endregion