disappointing night commit

This commit is contained in:
Alex
2025-01-20 22:10:55 +00:00
parent 59cbaa6b02
commit b2e6117ccd
12 changed files with 21 additions and 76 deletions
+2 -2
View File
@@ -54,12 +54,12 @@ public static class Program
var app = serviceProvider.GetService<App>();
app?.Run().Wait();
GCSettings.LargeObjectHeapCompactionMode = GCLargeObjectHeapCompactionMode.CompactOnce;
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive);
GC.Collect(GC.MaxGeneration, GCCollectionMode.Aggressive, true, true);
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.
if (httpConfig != null)
(appContext?.GetLatestValue(ContextVariableType.WEB_APPLICATION)?.GetValue<WebApplication>())?.Run($"http://{httpConfig.Ip}:{httpConfig.Port}");
appContext?.GetLatestValue(ContextVariableType.WEB_APPLICATION)?.GetValue<WebApplication>().Run($"http://{httpConfig.Ip}:{httpConfig.Port}");
}
catch (Exception ex)
{