2022-01-23 13:12:17 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace Image
|
|
|
|
|
{
|
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-23 17:30:05 +00:00
|
|
|
|
private IFileOutputPathFormatter _fileOutputPathFormatter;
|
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.
|
|
|
|
|
/// A implementation of <see cref="IFileOutputPathFormatter" />.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public IFileOutputPathFormatter FileOutputPathFormatter
|
2022-01-23 13:12:17 +00:00
|
|
|
|
{
|
2022-01-23 17:30:05 +00:00
|
|
|
|
get => _fileOutputPathFormatter;
|
|
|
|
|
set => _fileOutputPathFormatter = 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;
|
|
|
|
|
}
|
|
|
|
|
}
|