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

EndCall() public method

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