using CoreAgent.Domain.Interfaces; using CoreAgent.Infrastructure.Command; using CoreAgent.Infrastructure.Services; using Microsoft.Extensions.DependencyInjection; namespace CoreAgent.Infrastructure.Extensions; /// /// 服务集合扩展方法 /// public static class ServiceCollectionExtensions { /// /// 添加命令策略服务 /// /// 服务集合 /// 服务集合 public static IServiceCollection AddCommandCustomService(this IServiceCollection services) { // 注册命令策略工厂 services.AddSingleton(); // 注册 ICellularNetworkService services.AddScoped(); return services; } }