20 lines
716 B
C#
20 lines
716 B
C#
namespace OF_DL.Services;
|
|
|
|
/// <summary>
|
|
/// Interface for reporting download progress in a UI-agnostic way.
|
|
/// This allows the download service to report progress without being coupled to any specific UI framework.
|
|
/// </summary>
|
|
public interface IProgressReporter
|
|
{
|
|
/// <summary>
|
|
/// Reports progress increment. The value represents either bytes downloaded or file count depending on configuration.
|
|
/// </summary>
|
|
/// <param name="increment">The amount to increment progress by</param>
|
|
void ReportProgress(long increment);
|
|
|
|
/// <summary>
|
|
/// Gets the cancellation token for canceling the operation.
|
|
/// </summary>
|
|
CancellationToken CancellationToken { get; }
|
|
}
|