using AssetManager.Infrastructure.StrategyEngine.Calculators; using Microsoft.Extensions.DependencyInjection; namespace AssetManager.Infrastructure.StrategyEngine; /// /// 策略引擎服务注册扩展 /// public static class StrategyEngineExtensions { /// /// 注册策略引擎及所有计算器 /// public static IServiceCollection AddStrategyEngine(this IServiceCollection services) { // 注册策略计算器 services.AddScoped(); services.AddScoped(); services.AddScoped(); // 注册策略引擎 services.AddScoped(); return services; } }