我正在学习ASP.NET的核心,通过一个多元化的视频。视频中的那个家伙告诉我,通过在Startup.ConfigureServices中注册它,我可以将“服务”作为单例或临时添加。ConfigureServices(IServiceCollection services) {
// Register the Greeter as an IGreeter and have the ASP.NET这是在做像Autofac这样的依赖注入框架时所做的事情吗,但是ASP.NET
对于"-ir“选项,aspnet_regiis实用程序的帮助文本显示如下:Install this version of ASP.NET.If there are any existing applications that uses ASP.NET, it will not change IIS configuration to use