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