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

EndFindServers() public method

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