public async Task LogoutAsync() { if (!connectivity.IsConnected) { throw new NetworkConnectionException(); } await cloudBackupService.LogoutAsync(); settingsFacade.IsLoggedInToBackupService = false; settingsFacade.IsBackupAutouploadEnabled = false; logger.Info("Successfully logged out."); }
/// <inheritdoc /> public async Task LogoutAsync() { if (!connectivity.IsConnected) { throw new NetworkConnectionException(); } try { await cloudBackupService.LogoutAsync(); } catch (BackupAuthenticationFailedException ex) { logManager.Error(ex, "Logout Failed."); throw; } }