You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
508 B
C#
19 lines
508 B
C#
using VOL.Core.Extensions;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|
|
}
|