Book Image

Customizing ASP.NET Core 5.0

By : Jürgen Gutsch
Book Image

Customizing ASP.NET Core 5.0

By: Jürgen Gutsch

Overview of this book

ASP.NET Core is the most powerful Microsoft web framework. Although it’s full of rich features, sometimes the default configurations can be a bottleneck and need to be customized to suit the nature and scale of your app. If you’re an intermediate-level .NET developer who wants to extend .NET Core to multiple use cases, it's important to customize these features so that the framework works for you effectively. Customizing ASP.NET Core 5.0 covers core features that can be customized for developing optimized apps. The customization techniques are also updated to work with the latest .NET 5 framework. You’ll learn essential concepts relating to optimizing the framework such as configuration, dependency injection, routing, action filters, and more. As you progress, you’ll be able to create custom solutions that meet the needs of your use case with ASP.NET Core. Later chapters will cover expert techniques and best practices for using the framework for your app development needs, from UI design to hosting. Finally, you’ll focus on the new endpoint routing in ASP.NET Core to build custom endpoints and add third-party endpoints to your web apps for processing requests faster. By the end of this application development book, you’ll have the skills you need to be able to customize ASP.NET Core to develop robust optimized apps.
Table of Contents (15 chapters)

What this book covers

Chapter 1, Customizing Logging, teaches you how to customize the logging behavior and how to add a custom logging provider.

Chapter 2, Customizing App Configuration, helps you understand how to use different configuration sources and add custom configuration providers.

Chapter 3, Customizing Dependency Injection, teaches you how Dependency Injection (DI) works and how to use a different DI container.

Chapter 4, Configuring and Customizing HTTPS with Kestrel, looks into configuring HTTPS differently.

Chapter 5, Using IHostedService and BackgroundService, makes you understand how to execute tasks in the background.

Chapter 6, Writing Custom Middleware, deals with the HTTP context using middleware.

Chapter 7, Content Negotiation Using a Custom OutputFormatter, teaches you how to output different content types based on the HTTP Accept header.

Chapter 8, Managing Inputs with Custom ModelBinders, helps you create input models with different types of content.

Chapter 9, Creating a Custom ActionFilter, uncovers aspect-oriented programming using ActionFilters.

Chapter 10, Creating Custom TagHelpers, enables you to simplify the UI layer by creating TagHelpers.

Chapter 11, Configuring WebHostBuilder, helps you understand how to set up configuration on the hosting layer.

Chapter 12, Using Different Hosting Models, teaches you about different types of hosting on different platforms.

Chapter 13, Working with Endpoint Routing, helps you understand how to use the new routing to provide custom endpoints.