Esempio n. 1
0
        public async Task LogoutAsync()
        {
            if (!connectivity.IsConnected)
            {
                throw new NetworkConnectionException();
            }

            await cloudBackupService.LogoutAsync();

            settingsFacade.IsLoggedInToBackupService = false;
            settingsFacade.IsBackupAutouploadEnabled = false;

            logger.Info("Successfully logged out.");
        }
Esempio n. 2
0
        /// <inheritdoc />
        public async Task LogoutAsync()
        {
            if (!connectivity.IsConnected)
            {
                throw new NetworkConnectionException();
            }

            try
            {
                await cloudBackupService.LogoutAsync();
            }
            catch (BackupAuthenticationFailedException ex)
            {
                logManager.Error(ex, "Logout Failed.");

                throw;
            }
        }