Opc.Ua.Com.Server.ComAe2Subscription.ApplyChanges C# (CSharp) Method

ApplyChanges() public method

Applies any changes to the subscription.
public ApplyChanges ( ) : void
return void
        public void ApplyChanges()
        {
            ThrowIfDisposed();

            lock (m_lock)
            {
                if (m_subscription == null)
                {
                    CreateSubscription();
                }
                else
                {
                    ModifySubscription();
                }

                if (m_callbackTimer != null)
                {
                    m_callbackTimer.Dispose();
                    m_callbackTimer = null;
                }
                
                if (Active)
                {
                    // adjust keep alive to reflect current settings.
                    SetKeepAlive(KeepAlive);

                    // start a callabck thread.
                    m_callbackTimer = new Timer(DoProcessQueue, null, 0, (long)ActualBufferTime);
                }
            }
        }