hutongqing
2024-08-21 b5bc0d6eb2d2e55ea830a1b286252b9754cbf8e9
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;
        }