the sample does not configure AppSettings any more (#1628)

pull/1629/head^2
Zeke Lu 2016-07-06 23:37:35 +08:00 committed by Rick Anderson
parent 4e5c3685ab
commit 7247df37e0
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ Just as with ``Configure``, it is recommended that features that require substan
Adding services to the services container makes them available within your application via :doc:`dependency injection <dependency-injection>`. Just as the ``Startup`` class is able to specify dependencies its methods require as parameters, rather than hard-coding to a specific implementation, so too can your middleware, MVC controllers and other classes in your application.
The ``ConfigureServices`` method is also where you should add configuration option classes, like ``AppSettings`` in the example above, that you would like to have available in your application. See the :doc:`configuration` topic to learn more about configuring options.
The ``ConfigureServices`` method is also where you should add configuration option classes that you would like to have available in your application. See the :doc:`configuration` topic to learn more about configuring options.
Services Available in Startup
-----------------------------

View File

@ -3,7 +3,7 @@ Adding Validation
By `Rick Anderson`_
In this this section you'll add validation logic to the ``Movie`` model, and you'll ensure that the validation rules are enforced any time a user attempts to create or edit a movie.
In this section you'll add validation logic to the ``Movie`` model, and you'll ensure that the validation rules are enforced any time a user attempts to create or edit a movie.
Keeping things DRY
---------------------