Improved implementation of ApplicationContext

This commit is contained in:
Chomp
2025-01-14 12:23:44 +00:00
parent f0b534a6e0
commit b9a5835bd2
3 changed files with 31 additions and 10 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using Core.Annotations;
using Core.Context;
using Core.DI;
using Core.Servers;
@@ -18,7 +18,7 @@ public class HttpCallbacks : OnLoad
public async Task OnLoad()
{
_httpServer.Load((WebApplicationBuilder) _applicationContext.GetLatestValue(ContextVariableType.APP_BUILDER).Value);
_httpServer.Load( _applicationContext.GetLatestValue(ContextVariableType.APP_BUILDER).GetValue<WebApplicationBuilder>());
_applicationContext.ClearValues(ContextVariableType.APP_BUILDER);
}