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

EndSetTriggering() public method

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