We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
看什么时候支持这种依赖注入,以前很多项目可能就会无缝切换到FastHttpApi上面来 /// <summary> /// IoC 初始化 /// </summary> /// <param name="services"></param> /// <returns></returns> private IServiceProvider InitIoC(IServiceCollection services) { // 数据库链接字符串 services.Configure<AppSettings>(Configuration.GetSection("AppSettings")); services.AddScoped<IDatabaseContext, MySqlContext>(); services.AddTransient<IUnitOfWork, UnitOfWork>();
}
The text was updated successfully, but these errors were encountered:
考虑引入一个 控制器创建事件,用于给应用者在事件中使用IOC组件创建控制器对象
Sorry, something went wrong.
No branches or pull requests
}
The text was updated successfully, but these errors were encountered: