feat: 注册 Platform 的 Gateway Store/Manager 服务
Some checks failed
Build / build (push) Failing after 30s
Deploy to K8s / deploy (push) Failing after 2s
Build and Push Docker / build (push) Failing after 18s

- 添加 IRouteStore, IInstanceStore, IRouteManager 依赖注入
- 为后续迁移到 Platform 的 Store/Manager 模式做准备
This commit is contained in:
movingsam 2026-03-01 01:43:44 +08:00
parent 0678b44a90
commit 634e6fe455

View File

@ -43,6 +43,13 @@ builder.Services.AddScoped<IOAuthClientService, OAuthClientService>();
builder.Services.AddScoped<ITenantStore, TenantStore<PlatformDbContext>>();
builder.Services.AddScoped<ITenantManager, TenantManager>();
// Register Gateway managers
builder.Services.AddScoped<IRouteStore, RouteStore<PlatformDbContext>>();
builder.Services.AddScoped<IInstanceStore, InstanceStore<PlatformDbContext>>();
builder.Services.AddScoped<IRouteManager, RouteManager>();
builder.Services.AddScoped<ITenantStore, TenantStore<PlatformDbContext>>();
builder.Services.AddScoped<ITenantManager, TenantManager>();
builder.Services.AddScoped<IUserService, UserService>();
builder.Services.AddScoped<ITenantService, TenantService>();
builder.Services.AddScoped<IRoleService, RoleService>();