ImgMetadataRemover/ImageCore/Tasks/TaskExecutorOptions.cs

28 lines
878 B
C#
Raw Normal View History

2022-01-23 13:12:17 +00:00
using System;
using Image.Files;
2022-01-23 13:12:17 +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-02-12 20:12:57 +00:00
private IOutputSink _outputSink;
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-02-12 20:12:57 +00:00
/// A implementation of <see cref="IOutputSink" />.
2022-01-23 17:30:05 +00:00
/// </summary>
2022-02-12 20:12:57 +00:00
public IOutputSink OutputSink
2022-01-23 13:12:17 +00:00
{
2022-02-12 20:12:57 +00:00
get => _outputSink;
set => _outputSink = value ?? throw new ArgumentException("OutputSink 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;
}
}