Exemplo n.º 1
0
 public void Handle(ApiKeyUpdated message)
 {
     if (string.IsNullOrWhiteSpace(message.ApiKey))
     {
         IsEnabled = false;
     }
 }
Exemplo n.º 2
0
 public async void Handle(ApiKeyUpdated message)
 {
     LoginState = string.IsNullOrWhiteSpace(message.ApiKey) ? LoginState.LoggedOut : LoginState.LoggedIn;
     await RefreshConnection().ConfigureAwait(false);
 }