fix: align backend APIs and upload flow
This commit is contained in:
@@ -25,6 +25,7 @@ namespace IM.InitCommon
|
||||
//similar to serviceCollection.AddDbContextPool<ECDictDbContext>(opt=>new DbContextOptionsBuilder(dbCtxOpt));
|
||||
var methodGenericAddDbContext = methodAddDbContext.MakeGenericMethod(dbCtxType);
|
||||
methodGenericAddDbContext.Invoke(null, new object[] { services, action, ServiceLifetime.Scoped, ServiceLifetime.Scoped });
|
||||
services.AddScoped(sp => new Management.ManagementDbProbe((DbContext)sp.GetRequiredService(dbCtxType)));
|
||||
}
|
||||
}
|
||||
return services;
|
||||
|
||||
Reference in New Issue
Block a user