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

EndPublish() public method

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