From dab11c82f026555a277f771f5a2aaeb78216448f Mon Sep 17 00:00:00 2001 From: Chomp Date: Tue, 14 Jan 2025 12:45:06 +0000 Subject: [PATCH] Fix error --- Server/Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Server/Program.cs b/Server/Program.cs index db0e6279..98a1d127 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -1,4 +1,4 @@ -using System.Reflection; +using System.Reflection; using System.Security.Cryptography; using Core.Annotations; using Core.Context; @@ -52,7 +52,7 @@ public static class Program var httpConfig = serviceProvider.GetService().GetConfig(ConfigTypes.HTTP); // 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. - (appContext.GetLatestValue(ContextVariableType.WEB_APPLICATION).Value as WebApplication).Run($"http://{httpConfig.Ip}:{httpConfig.Port}"); + (appContext.GetLatestValue(ContextVariableType.WEB_APPLICATION).GetValue()).Run($"http://{httpConfig.Ip}:{httpConfig.Port}"); } catch (Exception ex) {