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

EndActivateSession() public method

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