ImgMetadataRemover/ConsoleInterface/TaskExecutorOptions.cs

28 lines
953 B
C#
Raw Normal View History

2022-01-23 13:12:17 +00:00
using System;
2022-01-25 20:57:22 +00:00
using Image.Output;
2022-01-23 13:12:17 +00:00
namespace ConsoleInterface
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;
}
}