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

EndRead() public method

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