LootDumpProcessor/Program.cs
chomp 6e4c7abf73 dump-processor-cleanup (#6)
Co-authored-by: Alex <alex@dm-me-for-questions.com>
Reviewed-on: SPT-AKI/LootDumpProcessor#6
2024-04-16 18:29:40 +00:00

23 lines
726 B
C#

using LootDumpProcessor.Logger;
using LootDumpProcessor.Process;
using LootDumpProcessor.Storage;
namespace LootDumpProcessor;
public static class Program
{
public static void Main()
{
// Bootstrap the config before anything else, its required by the whole application to work
LootDumpProcessorContext.GetConfig();
// Some loggers may need a startup and stop mechanism
LoggerFactory.GetInstance().Setup();
// Setup Data storage
DataStorageFactory.GetInstance().Setup();
// startup the pipeline
PipelineFactory.GetInstance().DoProcess();
// stop loggers at the end
LoggerFactory.GetInstance().Stop();
Thread.Sleep(10000);
}
}