private void OnOfflineEventHandler(OfflineEventArgs e)
        {
            OfflineEvent handler = null;
            lock (this)
            {
                handler = _offlineEventHandler;
            }

            if (handler != null)
            {
                handler(this, e);
            }
        }
        private void OnOffline(object sender, OfflineEventArgs e)
        {
            if (e == null || e.ServerEnv == null)
            {
                return;
            }

            OfflineDetected(e.ServerEnv);
        }