CalDavSynchronizer.Ui.Options.ViewModels.OptionsCollectionViewModel.RequestCacheDeletion C# (CSharp) Méthode

RequestCacheDeletion() public méthode

public RequestCacheDeletion ( IOptionsViewModel viewModel ) : void
viewModel IOptionsViewModel
Résultat void
    public void RequestCacheDeletion (IOptionsViewModel viewModel)
    {
     
        s_logger.InfoFormat ("Deleting cache for profile '{0}'", viewModel.Name);

        var profileDataDirectory = _profileDataDirectoryFactory (viewModel.Id);
        if (Directory.Exists (profileDataDirectory))
          Directory.Delete (profileDataDirectory, true);

        MessageBox.Show ("A new intial sync will be performed with the next sync run!", "Profile cache deleted",MessageBoxButton.OK, MessageBoxImage.Information);
    
    }