protected virtual void OnDisconnected() { EventHandler handler = Disconnected; if (handler != null) handler(this, EventArgs.Empty); }