Opc.Ua.DiscoveryEndpoint.EndRegisterServer2 C# (CSharp) Method

EndRegisterServer2() public method

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