13 lines
379 B
C#
13 lines
379 B
C#
using System;
|
|
|
|
namespace VOL.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);
|
|
}
|
|
}
|
|
} |