#region ========================================================================= USING ===================================================================================== using Lumina.Application.Common.Infrastructure.Models.MediaLibraryScanJobPayloads; using System; using System.Collections.Generic; using System.Threading; using System.Threading.Tasks; #endregion namespace Lumina.Application.Common.Infrastructure.Security; /// /// Interface for the service for hashing files by sampling chunks from them. /// public interface IFileHashService { /// /// Hashes by sampling chunks from them. /// /// The collection of files to hash. /// Callback to invoke during processing of elements. /// Cancellation token that can be used to stop the execution. /// A collection of the hashed files, along with their hashes. Task> HashFilesAsync(IReadOnlyCollection files, Func callback, CancellationToken cancellationToken); }