Opc.Ua.SessionEndpoint.EndHistoryRead C# (CSharp) Method

EndHistoryRead() public method

Waits for an asynchronous call to the HistoryRead service to complete.
public EndHistoryRead ( IAsyncResult ar ) : HistoryReadResponseMessage
ar IAsyncResult
return HistoryReadResponseMessage
        public virtual HistoryReadResponseMessage EndHistoryRead(IAsyncResult ar)
        {
            try
            {
                IServiceResponse response = ProcessRequestAsyncResult.WaitForComplete(ar, true);
                OnResponseSent(response);
                return new HistoryReadResponseMessage((HistoryReadResponse)response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(ProcessRequestAsyncResult.GetRequest(ar), e);
                OnResponseFaultSent(fault);
                throw fault;
            }
        }
        #endif
SessionEndpoint