LootDumpProcessor/Program.cs

23 lines
726 B
C#
Raw Normal View History

using LootDumpProcessor.Logger;
2023-08-12 19:08:38 +01:00
using LootDumpProcessor.Process;
using LootDumpProcessor.Storage;
namespace LootDumpProcessor;
public static class Program
2023-08-12 19:08:38 +01:00
{
public static void Main()
2023-08-12 19:08:38 +01:00
{
// 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);
}
}