Book Image

Customizing ASP.NET Core 6.0 - Second Edition

By : Jürgen Gutsch
Book Image

Customizing ASP.NET Core 6.0 - Second Edition

By: Jürgen Gutsch

Overview of this book

ASP.NET Core is packed full of hidden features for building sophisticated web applications – but if you don’t know how to customize it, you’re not making the most of its capabilities. Customizing ASP.NET Core 6.0 is a book that will teach you all about tweaking the knobs at various layers and take experienced programmers’ skills to a new level. This updated second edition covers the latest features and changes in the .NET 6 LTS version, along with new insights and customization techniques for important topics such as authentication and authorization. You’ll also learn how to work with caches and change the default behavior of ASP.NET Core apps. This book will show you the essential concepts relating to tweaking 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 book, you'll be able to customize ASP.NET Core to develop better, more robust apps.
Table of Contents (18 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, Configuring WebHostBuilder, helps you understand how to set up configuration on the hosting layer.

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

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

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

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

Chapter 10, Customizing ASP.NET Core Identity, explains how to extend the application's user properties and helps you to change the Identity UI.

Chapter 11, Configuring Identity Management, helps you to manage your users and their roles.

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

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

Chapter 14, Creating a Custom ActionFilter, covers aspect-oriented programming using ActionFilter.

Chapter 15, Working with Caches, helps you to make your application faster.

Chapter 16, Creating Custom TagHelper, enables you to simplify the UI layer by creating TagHelper.