using Microsoft.Extensions.DependencyInjection;
namespace Fengling.Platform.Infrastructure;
///
/// Gateway 服务扩展方法
///
public static class GatewayExtensions
{
///
/// 注册 Gateway 核心服务
///
/// 数据库上下文类型
/// 服务集合
/// 服务集合
public static IServiceCollection AddGatewayCore(this IServiceCollection services)
where TContext : PlatformDbContext
{
// 注册 Gateway stores
services.AddScoped>();
services.AddScoped>();
// 注册 Gateway managers
services.AddScoped();
return services;
}
}