【问题标题】:use of the ConfigureServices and Configure methods in Startup.cs in asp.net vnext在 asp.net vnext 中使用 Startup.cs 中的 ConfigureServices 和 Configure 方法
【发布时间】:2015-02-18 04:37:09
【问题描述】:

我想更好地了解 startup.cs 类中 ConfigureServices 和 Configure 方法之间的区别。
对比一下github上的starter app和musicstore app的启动类,好像配置的方式很不一样,所以我不是很明白有什么区别,每个里面要做什么。

【问题讨论】:

    标签: asp.net-core


    【解决方案1】:

    ConfigureServices 方法用于配置 DI 容器及其服务。 Configure方法通常用于配置管道。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-10-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-10-01
      • 2017-05-15
      相关资源
      最近更新 更多