public void StartListen() { if (ClientContext != null) { _stateUnit = ClientContext.SubscribeToChange(() => ClientContext.State, sender => PropertyChanged.Notify(() => IsDisconnected)); } }