/// <summary> /// Constructs the cleaner /// </summary> /// <param name="cacheDir">Directory to be deleted</param> /// <param name="builderEnumerator">All the registered reference builders</param> /// <param name="predicatesFactory">Factory for soft-clean predicate registry</param> public CacheCleaner(Lazy <IFileSystemDirectory> cacheDir, IBuilderEnumerator builderEnumerator, Func <ISoftCleanPredicates> predicatesFactory) { this.cacheDir = cacheDir; this.builderEnumerator = builderEnumerator; this.predicatesFactory = predicatesFactory; }
/// <summary> /// Constructs the cleaner /// </summary> /// <param name="cacheDir">Directory to be deleted</param> /// <param name="builderEnumerator">All the registered reference builders</param> /// <param name="predicatesFactory">Factory for soft-clean predicate registry</param> public CacheCleaner(Lazy<IFileSystemDirectory> cacheDir, IBuilderEnumerator builderEnumerator, Func<ISoftCleanPredicates> predicatesFactory) { this.cacheDir = cacheDir; this.builderEnumerator = builderEnumerator; this.predicatesFactory = predicatesFactory; }
/// <summary> /// Constructs the cleaner /// </summary> /// <param name="cacheDir">Directory to be deleted</param> /// <param name="builderEnumerator">All the registered reference builders</param> public CacheCleaner(IFileSystemDirectory cacheDir, IBuilderEnumerator builderEnumerator) { this.cacheDir = cacheDir; this.builderEnumerator = builderEnumerator; }