/// <summary>
        ///     Writes the current connection stats
        /// </summary>
        /// <param name="methodName"></param>
        private void NotifyForConnStatChanges([CallerMemberName] string methodName = null)
        {
            var connStats = new ConnectionStats {
                ClientConnectionsCount = _totalClientCount, ActiveClientCount = _activeClientCount
            };
            var connStatsEventArgs = new ConnectionStatsMessageEventArgs {
                Timestamp = DateTime.Now, SourceName = methodName, Stats = connStats
            };

            OnConnectionInfoMessageEventHandler(connStatsEventArgs);
        }
 protected virtual void OnConnectionInfoMessageEventHandler(ConnectionStatsMessageEventArgs e)
 {
     ConnectionInfoMessageEventHandler?.Invoke(this, e);
 }