2024-04-16 18:29:40 +00:00
|
|
|
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; }
|
2023-08-13 17:26:49 +01:00
|
|
|
|
|
|
|
[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; }
|
2024-04-16 18:29:40 +00:00
|
|
|
|
|
|
|
[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
|
|
|
}
|