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

EndRepublish() public method

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