Configuration and Options in ASP.NET Core 6
This course will teach you everything you need to know about using configuration and options in ASP.NET Core. The skills you will learn will help you to build complex ASP.NET Core applications which can be configured from multiple sources.
What you'll learn
When developing .NET Core applications, you will soon find that you need to configure them to control their behavior and to connect to external resources. In this course, Configuration and Options in ASP.NET Core 6, you will learn foundational knowledge to define configuration for your applications and to access the configured values at runtime. First, you will learn about defining configuration using JSON files, as well as how to access that configuration to control your application. Next, you will discover the options pattern which provides a type-safe way to access configuration through dependency injection and which applies the single responsibility principle. Finally, you will explore how to load configuration from a range of other sources using configuration providers. When you are finished with this course, you will have the skills and knowledge of the configuration and options libraries needed to build well-structured, configurable ASP.NET Core 6 applications.
Table of contents
- Module Introduction 4m
- Application Configuration in ASP.NET Core 4m
- Introducing the Tennis Booking Application 4m
- Defining Configuration in JSON Files 6m
- Accessing Configuration at Runtime 5m
- Accessing Configuration Sections 4m
- Accessing Configuration at Startup 9m
- Downsides of Using IConfiguration Directly 1m
- Binding Configuration 4m
- Overriding Configuration Per Environment 4m
- Module Summary 1m
- Module Introduction 1m
- Introducing the Options Pattern 7m
- Reloading Options Using IOptionsSnapshot 3m
- Accessing Options Using IOptionsMonitor 9m
- Using Named Options 8m
- Choosing between Options Interfaces 4m
- Applying Options Validation 6m
- Advanced Options Validation 8m
- Validating Named Options 4m
- Forwarding to Options via Dependency Injection 4m
- Unit Testing Types Dependent on Options Classes 8m
- Module Summary 2m
- Module Introduction 2m
- Configuration Providers 5m
- How Configuration Is Populated 3m
- Configuration Using Environment Variables 5m
- Configuration Using Command Line Arguments 3m
- Securing Sensitive Data in Configuration 2m
- Securing Development Configuration with User Secrets 6m
- Securing Production Configuration with Azure Key Vault 6m
- Loading Configuration from AWS Parameter Store 4m
- Customizing the Order of Configuration Providers 4m
- Creating Custom Configuration Providers 7m
- Debugging Configuration 3m
- Course Summary 2m