Opc.Ua.SessionEndpoint.EndActivateSession C# (CSharp) 메소드

EndActivateSession() 공개 메소드

Waits for an asynchronous call to the ActivateSession service to complete.
public EndActivateSession ( IAsyncResult ar ) : ActivateSessionResponseMessage
ar IAsyncResult
리턴 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