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

EndCreateSubscription() public method

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