From a4122d504f8fc5f0626eaa0cbc270b47742812d9 Mon Sep 17 00:00:00 2001
From: hutongqing <hutongqing@hnkhzn.com>
Date: 星期一, 26 八月 2024 17:13:36 +0800
Subject: [PATCH] 1

---
 WIDESEAWCS_Server/WIDESEAWCS_Core/App.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WIDESEAWCS_Server/WIDESEAWCS_Core/App.cs b/WIDESEAWCS_Server/WIDESEAWCS_Core/App.cs
index 6cf3e41..ebce9ef 100644
--- a/WIDESEAWCS_Server/WIDESEAWCS_Core/App.cs
+++ b/WIDESEAWCS_Server/WIDESEAWCS_Core/App.cs
@@ -80,7 +80,7 @@
             if (HttpContext?.RequestServices != null)
                 return HttpContext.RequestServices;
 
-            if (App.RootServices != null)
+            if (RootServices != null)
             {
                 IServiceScope scope = RootServices.CreateScope();
                 return scope.ServiceProvider;
@@ -102,7 +102,7 @@
 
         public static TService GetService<TService>(bool mustBuild = true) where TService : class
         {
-            TService test = App.GetService(typeof(TService), null, mustBuild) as TService;
+            TService test = GetService(typeof(TService), null, mustBuild) as TService;
             return test;
         }
 

--
Gitblit v1.9.3