示例#1
0
 public Task<bool> LogoutAsync(ISettingsModel settings)
 {
     bool result = settings.Remove("currentUser");
     TaskCompletionSource<bool> tcs = new TaskCompletionSource<bool>();
     tcs.SetResult(result);
     return tcs.Task;
 }
示例#2
0
 public void Logout(ISettingsModel settings)
 {
     isLoggedOut = true;
     bool result = settings.Remove("currentUser");
     settings.SaveSettings();
 }