Files
SPT-Server-Build/Tools/HideoutCraftQuestIdGenerator/HideoutCraftQuestIdGeneratorLauncher.cs
T
2025-04-22 14:49:05 +01:00

29 lines
831 B
C#

using Microsoft.Extensions.DependencyInjection;
using SPTarkov.DI;
using SPTarkov.Server.Core.Utils;
namespace HideoutCraftQuestIdGenerator;
public class HideoutCraftQuestIdGeneratorLauncher
{
public static void Main(string[] args)
{
try
{
var serviceCollection = new ServiceCollection();
DependencyInjectionRegistrator.RegisterSptComponents(
typeof(HideoutCraftQuestIdGeneratorLauncher).Assembly,
typeof(App).Assembly,
serviceCollection
);
var serviceProvider = serviceCollection.BuildServiceProvider();
serviceProvider.GetService<HideoutCraftQuestIdGenerator>().Run().Wait();
}
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
}