60 lines
2.0 KiB
C#
Raw Permalink Normal View History

using System.Text.Json.Serialization;
2023-08-12 19:08:38 +01:00
using LootDumpProcessor.Serializers.Json;
using Newtonsoft.Json;
namespace LootDumpProcessor.Model.Config;
public class Config
{
[JsonProperty("serverLocation")]
[JsonPropertyName("serverLocation")]
public string? ServerLocation { get; set; }
[JsonProperty("threads")]
[JsonPropertyName("threads")]
public int Threads { get; set; } = 6;
[JsonProperty("threadPoolingTimeoutMs")]
[JsonPropertyName("threadPoolingTimeoutMs")]
public int ThreadPoolingTimeoutMs { get; set; } = 1000;
[JsonProperty("jsonSerializer")]
[JsonPropertyName("jsonSerializer")]
public JsonSerializerTypes JsonSerializer { get; set; } = JsonSerializerTypes.DotNet;
[JsonProperty("manualGarbageCollectionCalls")]
[JsonPropertyName("manualGarbageCollectionCalls")]
public bool ManualGarbageCollectionCalls { get; set; }
[JsonProperty("dataStorageConfig")]
[JsonPropertyName("dataStorageConfig")]
public DataStorageConfig DataStorageConfig { get; set; }
[JsonProperty("loggerConfig")]
[JsonPropertyName("loggerConfig")]
public LoggerConfig LoggerConfig { get; set; }
[JsonProperty("readerConfig")]
[JsonPropertyName("readerConfig")]
public ReaderConfig ReaderConfig { get; set; }
[JsonProperty("processorConfig")]
[JsonPropertyName("processorConfig")]
public ProcessorConfig ProcessorConfig { get; set; }
[JsonProperty("dumpProcessorConfig")]
[JsonPropertyName("dumpProcessorConfig")]
public DumpProcessorConfig DumpProcessorConfig { get; set; }
2023-08-12 19:08:38 +01:00
[JsonProperty("writerConfig")]
[JsonPropertyName("writerConfig")]
public WriterConfig WriterConfig { get; set; }
[JsonProperty("collectorConfig")]
[JsonPropertyName("collectorConfig")]
public CollectorConfig CollectorConfig { get; set; }
2023-09-08 15:35:19 +01:00
[JsonProperty("containerIgnoreList")]
[JsonPropertyName("containerIgnoreList")]
public Dictionary<string, string[]> ContainerIgnoreList { get; set; }
2023-08-12 19:08:38 +01:00
}