Extending ASP.NET Core 6
Learn how to extend the kestrel web-server in a number of different ways for custom web scenarios.
What you'll learn
The kestrel web server built into ASP.NET can be extended in a number of different ways, and for a number of different reasons. In this course, Extending ASP.NET Core 6, you will learn how in general for 99% of the use cases extending things is usually not needed; that remaining 1% however usually necessitates creating a small amount of code connected to one of the many extension points available in the ASP.NET 6 and Kestrel runtime. First, you will discover how to create a middleware module. Then, you will explore the steps to annotate and validate custom models and binders. Finally, you will break down how to use a custom action folder as well as various tag helpers. When you finish with this course, you will know how to extend the kestrel web-server in a number of different ways for custom web scenarios.
Table of contents
- Module Overview 1m
- What Is Middleware? 3m
- Middleware Methods 2m
- The Run Method 3m
- Demo: Creating Pipelines from Scratch, app.run 8m
- Demo: app.Use 9m
- Demo: app.Map 5m
- Secondary Methods 3m
- Demo: app.UseWhen 5m
- Demo: app.MapWhen 4m
- Middleware Provided by ASP.NET 3m
- External Middleware Class 2m
- Demo: Full End-to-end Example 8m
- Demo: Full End-to-end Example (cont.) 10m
- Module Summary 1m
- Module Overview 1m
- What Is a Model Binder? 2m
- The Model Binder Class 1m
- Demo: Create a Simple Model Binder 5m
- Demo: Create a Simple Model Binder (cont.) 9m
- Demo: Using RESTer 7m
- Model Binder Class Scenarios 2m
- Using a Validation Attribute 1m
- Demo: How to Use Validation Attributes 13m
- Using an Input Formatter 2m
- Demo: How to Use an Input Formatter 14m
- Module Summary 1m
- Module Overview 1m
- What Is an Action Filter? 5m
- The Different Action Types 2m
- Authorization Filters 2m
- Resource Filters 1m
- Action Filters 1m
- Result Filters 1m
- Exception Filters 1m
- How Do We Use an Action Filter 4m
- Demo: Action Filters (pt. 1) 2m
- Demo: Action Filters (pt. 2) 5m
- Demo: Action Filters (pt. 3) 6m
- Demo: Action Filters (pt. 4) 5m
- Module Summary 1m