/// <summary>
        /// Raises the OperationalChanged event
        /// </summary>
        protected virtual void OnOperationalChanged(bool newOperationalStatus)
        {
            if (!disposing)
            {
                Operational = newOperationalStatus;
                if (!Operational)
                {
                    tickTimer.Change(Timeout.Infinite, Timeout.Infinite);
                    //reconnector.Change(ReconnectPeriod, Timeout.Infinite);
                }

                OperationalChanged?.Invoke(this, EventArgs.Empty);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Raises the Disconnected event
 /// </summary>
 protected virtual void OnOperationalChanged()
 {
     OperationalChanged?.Invoke(this, EventArgs.Empty);
 }