insurance service done with raidtimeadjustmentservice

This commit is contained in:
CWX
2025-01-20 15:31:53 +00:00
parent 3cc7e91be8
commit b1d9035801
10 changed files with 441 additions and 46 deletions
+3 -1
View File
@@ -1,3 +1,4 @@
using System.Runtime;
using Core.Context;
using Core.Models.External;
using Core.Models.Spt.Config;
@@ -52,7 +53,8 @@ public static class Program
// Get the Built app and run it
var app = serviceProvider.GetService<App>();
app?.Run().Wait();
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive);
var httpConfig = serviceProvider.GetService<ConfigServer>()?.GetConfig<HttpConfig>();
// When we application gets started by the HttpServer it will add into the AppContext the WebApplication
// object, which we can use here to start the webapp.