0%

Explore hidden behaviors and customization techniques to help you get the most out of ASP.NET Core for building web applications

Key Features

  • Second edition updated and enhanced to cover the latest .NET 6 features and changes
  • Learn expert techniques to implement authentication and authorization for securing your web apps
  • Discover best practices for configuring ASP.NET Core, from user interface design to hosting it on platforms

Book Description

ASP.NET Core comes packed full of hidden features for building sophisticated web applications. You'd be missing out on a lot of its capabilities by not customizing it to work for your applications. With Customizing ASP.NET Core 6.0, you'll discover techniques to help you get the most out of the framework to deliver robust applications.

In this updated second edition, you'll cover the latest features and changes in the .NET 6 LTS version. You'll find new insights and customization techniques for important topics such as authentication and authorization. The book will also show you how to work with caches and change the default behavior of ASP.NET Core apps. 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 book, you'll be able to customize ASP.NET Core to develop robust optimized apps.

What you will learn

  • Explore various application configurations and providers in ASP.NET Core 6
  • Enable and work with caches to improve the performance of your application
  • Understand dependency injection in .NET and learn how to add third-party DI containers
  • Discover the concept of middleware and write your middleware for ASP.NET Core apps
  • Create various API output formats in your API-driven projects
  • Get familiar with different hosting models for your ASP.NET Core app

Who this book is for

This .NET 6 book is for .NET developers who need to change the default behaviors of the framework to help improve the performance of their applications. Intermediate-level knowledge of ASP.NET Core and C# is required before getting started with the book.

Table of Contents

  1. Customizing ASP.NET Core 6.0
  2. Second Edition
  3. Foreword
  4. Contributors
  5. About the author
  6. About the reviewer
  7. Preface
  8. Chapter 1: Customizing Logging
  9. Chapter 2: Customizing App Configuration
  10. Chapter 3: Customizing Dependency Injection
  11. Chapter 4: Configuring and Customizing HTTPS with Kestrel
  12. Chapter 5: Configuring WebHostBuilder
  13. Chapter 6: Using Different Hosting Models
  14. Chapter 7: Using IHostedService and BackgroundService
  15. Chapter 8: Writing Custom Middleware
  16. Chapter 9: Working with Endpoint Routing
  17. Chapter 10: Customizing ASP.NET Core Identity
  18. Chapter 11: Configuring Identity Management
  19. Chapter 12: Content Negotiation Using a Custom OutputFormatter
  20. Chapter 13: Managing Inputs with Custom ModelBinder
  21. Chapter 14: Creating a Custom ActionFilter
  22. Chapter 15: Working with Caches
  23. Chapter 16: Creating Custom TagHelper
  24. Other Books You May Enjoy
18.224.37.68