xiaojiao
2026-01-12 c3b60d865c3457c35054446e81b352e93e00a696
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using WIDESEA.Core.Extensions;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
 
namespace WIDESEA.Core.Extensions
{
    public static class ServiceProviderManagerExtension
    {
        public static object GetService(this Type serviceType)
        {
           // HttpContext.Current.RequestServices.GetRequiredService<T>(serviceType);
            return Utilities.HttpContext.Current.RequestServices.GetService(serviceType);
        }
 
    }
}