15 Using the platform features, part 1
- Understanding the built-in features provided by ASP.NET Core
- Accessing the application configuration
- Storing secrets outside of the project folder
- Logging messages
- Generating static content and using client-side packages
ASP.NET Core includes a set of built-in services and middleware components that provide features that are commonly required by web applications. In this chapter, I describe three of the most important and widely used features: application configuration, logging, and serving static content. In chapter 16, I continue to describe the platform features, focusing on the more advanced built-in services and middleware. Table 15.1 puts the chapter in context.
15.1 Preparing for this chapter
15.2 Using the configuration service
15.2.1 Understanding the environment configuration file
15.2.2 Accessing configuration settings
15.2.3 Using the configuration data in the Program.cs file
15.2.4 Using configuration data with the options pattern
15.2.5 Understanding the launch settings file
15.2.6 Using the environment service
15.2.7 Storing user secrets
15.3 Using the logging service
15.3.1 Generating logging messages
15.3.2 Logging messages with attributes
15.3.3 Configuring minimum logging levels
15.3.4 Logging HTTP requests and responses
15.4 Using static content and client-side packages
15.4.1 Adding the static content middleware
15.4.2 Using client-side packages
Summary