Class SourceRecycler
- Namespace
- Archiver.App.Core
- Assembly
- Archiver.App.Core.dll
"Delete after operation" (T-F207): recycles sources on a fixed local volume, asks before permanently deleting anything else, and reports what is still on disk.
public sealed class SourceRecycler
- Inheritance
-
SourceRecycler
- Inherited Members
Constructors
SourceRecycler(ISourceDeleteOperations)
"Delete after operation" (T-F207): recycles sources on a fixed local volume, asks before permanently deleting anything else, and reports what is still on disk.
public SourceRecycler(ISourceDeleteOperations ops)
Parameters
Methods
DeleteAsync(IEnumerable<string>, Func<IReadOnlyList<string>, Task<bool>>)
Deletes sources; see RecycleResult.
confirmPermanentDeleteAsync gets the sources that cannot go to the
Recycle Bin and returns whether to delete them permanently; it is awaited on the caller's
context, so it may show UI.
public Task<RecycleResult> DeleteAsync(IEnumerable<string> sources, Func<IReadOnlyList<string>, Task<bool>> confirmPermanentDeleteAsync)
Parameters
sourcesIEnumerable<string>confirmPermanentDeleteAsyncFunc<IReadOnlyList<string>, Task<bool>>