2022-01-23 13:12:17 +00:00
|
|
|
|
using System;
|
2022-02-11 21:39:34 +00:00
|
|
|
|
using Image.Files;
|
2022-01-23 13:12:17 +00:00
|
|
|
|
|
2022-02-12 19:45:59 +00:00
|
|
|
|
namespace Image.Tasks
|
2022-01-23 13:12:17 +00:00
|
|
|
|
{
|
2022-01-23 17:30:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// TaskExecutorOptions is a class containing various parameters for the <see cref="TaskExecutor" /> class.
|
|
|
|
|
/// </summary>
|
2022-01-23 13:12:17 +00:00
|
|
|
|
public class TaskExecutorOptions
|
|
|
|
|
{
|
2022-01-25 20:57:22 +00:00
|
|
|
|
private IFileOutputFormatter _fileOutputFormatter;
|
2022-01-23 13:12:17 +00:00
|
|
|
|
|
2022-01-23 17:30:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The file output path formatter. It cannot be null.
|
2022-01-25 20:57:22 +00:00
|
|
|
|
/// A implementation of <see cref="IFileOutputFormatter" />.
|
2022-01-23 17:30:05 +00:00
|
|
|
|
/// </summary>
|
2022-01-25 20:57:22 +00:00
|
|
|
|
public IFileOutputFormatter FileOutputFormatter
|
2022-01-23 13:12:17 +00:00
|
|
|
|
{
|
2022-01-25 20:57:22 +00:00
|
|
|
|
get => _fileOutputFormatter;
|
|
|
|
|
set => _fileOutputFormatter = value ?? throw new ArgumentException("Output formatter cannot be null!");
|
2022-01-23 13:12:17 +00:00
|
|
|
|
}
|
|
|
|
|
|
2022-01-23 17:30:05 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A boolean indicating if compression should be performed after cleaning the images.
|
|
|
|
|
/// </summary>
|
2022-01-23 13:12:17 +00:00
|
|
|
|
public bool EnableCompression { get; set; } = true;
|
|
|
|
|
}
|
|
|
|
|
}
|