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
437 B
C#

using Microsoft.AspNetCore.Builder;
namespace DS.Module.Core.ServiceExtensions;
/// <summary>
/// 服务定位器
/// </summary>
public class ServiceLocator
{
/// <summary>
/// 服务提供程序,用于直接获取已注入的类
/// </summary>
public static IServiceProvider Instance { get; set; }
/// <summary>
///
/// </summary>
public static IApplicationBuilder ApplicationBuilder { get; set; }
}