/// <inheritdoc /> public async Task Logout() { if (!connectivity.IsConnected) { throw new NetworkConnectionException(); } try { await cloudBackupService.Logout(); } catch (BackupAuthenticationFailedException ex) { logManager.Error(ex, "Logout Failed."); throw; } }
/// <inheritdoc /> public async Task <OperationResult> Logout() { if (!connectivity.IsConnected) { return(OperationResult.Failed(new NetworkConnectionException())); } try { await cloudBackupService.Logout(); } catch (BackupAuthenticationFailedException ex) { return(OperationResult.Failed(ex)); } return(OperationResult.Succeeded()); }