Laservall_manager_system/LM.Core/Extensions/ServiceProviderManagerExten...

19 lines
506 B
C#
Raw Normal View History

2025-10-09 16:26:44 +08:00
using LM.Core.Extensions;
2025-09-25 14:37:10 +08:00
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Text;
2025-10-09 16:26:44 +08:00
namespace LM.Core.Extensions
2025-09-25 14:37:10 +08:00
{
public static class ServiceProviderManagerExtension
{
public static object GetService(this Type serviceType)
{
// HttpContext.Current.RequestServices.GetRequiredService<T>(serviceType);
return Utilities.HttpContext.Current.RequestServices.GetService(serviceType);
}
}
}