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

EndCancel() public method

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