protected virtual void OnConnectionClosed()
        {
            State = ConnectionState.Closed;

            if (ConnectionClosed != null)
            {
                ConnectionClosed.call(this, EventArgs.Empty);
            }
        }