Using Configuration and Options in .NET Core 3 and ASP.NET Core 3 Apps
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, Using Configuration and Options in .NET Core and ASP.NET Core Apps, 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 and .NET Core applications.
Table of contents
- Version Check 0m
- Module Introduction 2m
- Application Configuration in .NET Core 4m
- Introducing the Tennis Booking Application 1m
- Defining Configuration in JSON Files 5m
- Accessing Configuration at Runtime 4m
- Accessing Configuration Sections 3m
- Accessing Configuration at Startup 7m
- Downsides of Using IConfiguration Directly 1m
- Binding Configuration 3m
- Overriding Configuration Per Environment 3m
- Module Review 1m
- Module Introduction 1m
- Introducing the Options Pattern 6m
- Reloading Options Using IOptionsSnapshot 3m
- Accessing Options Using IOptionsMonitor 7m
- Using Named Options 6m
- Applying Options Validation 8m
- Advanced Options Validation 7m
- Validating Named Options 3m
- Choosing between Options Interfaces 4m
- Forwarding to Options via an Interface 3m
- Unit Testing Types Dependent on Options Classes 7m
- Module Review 1m
- Module Introduction 2m
- Configuration Providers 4m
- How Configuration Is Populated 3m
- Configuration Using Environment Variables 3m
- Configuration Using Command Line Arguments 1m
- Securing Sensitive Data in Configuration 2m
- Securing Development Configuration with User Secrets 4m
- Securing Production Configuration with Azure Key Vault 5m
- Loading Configuration from AWS Parameter Store 3m
- Customizing the Order of Configuration Providers 3m
- Creating Custom Configuration Providers 7m
- Module Review 2m