private void OnServerState(bool listening) { if (ServerState != null) { ServerState(this, listening); } }