You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
351 B
11 lines
351 B
namespace Tiobon.Core.Common.DB.Dapper.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);
|
|
}
|
|
|
|
}
|
|
|