2024-04-16 18:29:40 +00:00
|
|
|
using LootDumpProcessor.Logger;
|
2023-08-12 19:08:38 +01:00
|
|
|
using LootDumpProcessor.Process;
|
|
|
|
using LootDumpProcessor.Storage;
|
|
|
|
|
|
|
|
namespace LootDumpProcessor;
|
|
|
|
|
2024-04-16 18:29:40 +00:00
|
|
|
public static class Program
|
2023-08-12 19:08:38 +01:00
|
|
|
{
|
2024-04-16 18:29:40 +00: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);
|
|
|
|
}
|
|
|
|
}
|