diff --git a/Store.API/Program.cs b/Store.API/Program.cs index b716fe9..0e1e8f8 100644 --- a/Store.API/Program.cs +++ b/Store.API/Program.cs @@ -8,7 +8,7 @@ public partial class Program { var builder = WebApplication.CreateBuilder(args); - // IOC 注册:自动注册 ISingletonDependency / IScopedDependency / ITransientDependency,并执行所有 IStartup / IModule.AddModule + // IOC 注册:自动注册 ISingletonDependency / IScopedDependency / ITransientDependency,并执行所有 IStartup / IModule.AddModule // 模块服务注册阶段(等价于 builder.Services.AddStoreHub(builder.Configuration, builder.Environment),额外把配置/环境交给模块) builder.AddStoreHub(); builder.Services.AddFreeSqlDB();