- Modern Web Development with ASP.NET Core 3
- Ricardo Peres
- 205字
- 2021-06-18 18:35:55
Getting started
Previous versions of .NET had a relatively simple configuration system, where all settings went into Extensible Markup Language (XML) files with the .config extension. There was a basic schema that could handle both system settings and untyped key-value pairs, but they were all strings. There was also some degree of inheritance, as some of the settings could be defined machine-wide and then overridden per application, and even in virtual applications underneath an Internet Information Services (IIS) application. It was possible to define custom sections with typed settings and complex structures by writing and registering .NET classes.
However, as convenient as this would seem, it turns out it had its limitations—namely, the following:
- Only XML files were supported; it was not possible to have other configuration sources out of the box.
- It was difficult to have different configuration files/configuration sections per environment (staging, quality assurance (QA), production, and more).
- It was not possible to receive notifications when the configuration changed.
- It was tricky to save changes.
Moreover, as dependency injection was not part of the core .NET infrastructure, there was no way to have configuration values injected into its services automatically. Let's see how .NET Core 3 helps us overcome these limitations.
- FuelPHP Application Development Blueprints
- 玩轉Scratch少兒趣味編程
- Python科學計算(第2版)
- Mobile Web Performance Optimization
- 零基礎學Scratch少兒編程:小學課本中的Scratch創意編程
- Learning RxJava
- Java應用開發與實踐
- 基于Swift語言的iOS App 商業實戰教程
- Nginx Lua開發實戰
- Java系統化項目開發教程
- Android傳感器開發與智能設備案例實戰
- uni-app跨平臺開發與應用從入門到實踐
- Bootstrap for Rails
- R Data Science Essentials
- JavaScript從入門到精通(視頻實戰版)