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

EndCloseSession() public method

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