0%

The professional developer's essential guide to building robust, maintainable, and flexible web apps by leveraging C# 10 and .NET 6 features and component- and application-scale design patterns

Key Features

  • Apply the SOLID architectural principles and software design patterns effectively with a focus on dependency injection
  • Discover modern application architectures such as vertical slice, clean architecture, and event-driven microservices
  • Explore full-stack ASP.NET Core with an overview of Blazor

Book Description

An Atypical ASP.NET Core 6 Design Patterns Guide, Second Edition approaches programming like playing with LEGO®: snapping small pieces together to create something beautiful. Thoroughly updated for ASP.NET Core 6, with further coverage of microservices patterns, data contracts, and event-driven architecture, this book gives you the tools to build and glue reliable components together to improve your programmatic masterpieces.

The chapters are organized based on scale and topic, allowing you to start small and build on a strong base, the same way that you would develop a program. You will begin by exploring basic design patterns, SOLID architectural principles, dependency injection, and other ASP.NET Core 6 mechanisms. You will explore component-scale patterns, and then move to higher level application-scale patterns and techniques to better structure your applications. Finally, you'll advance to the client side to connect the dots with tools like Blazor and make ASP.NET Core a viable full-stack web development framework.

You will supplement your learning with practical use cases and best practices, exploring a range of significant Gang of Four (GoF) design patterns along the way. By the end of the book, you will be comfortable combining and implementing patterns in different ways, and crafting software solutions of any scale.

What you will learn

  • Apply the SOLID principles for building flexible and maintainable software
  • Get to grasp .NET dependency Injection
  • Work with GoF design patterns such as strategy, decorator, façade, and composite
  • Explore the MVC patterns for designing web APIs and web applications using Razor
  • Discover layering techniques and tenets of clean architecture
  • Become familiar with CQRS and vertical slice architecture as an alternate to layering
  • Understand microservices and when they can benefit your applications
  • Build an ASP.NET user interfaces from server-side to client-side Blazor

Who this book is for

The book is intended for intermediate software and web developers with an understanding of .NET who want to write flexible, maintainable, and robust code for building scalable web applications. Knowledge of C# programming and an understanding of web concepts like HTTP is necessary.

Table of Contents

  1. Preface
  2. Section 1: Principles and Methodologies
  3. Introduction
  4. Automated Testing
  5. Architectural Principles
  6. Section 2: Designing for ASP.NET Core
  7. The MVC Pattern Using Razor
  8. The MVC Pattern for Web APIs
  9. Understanding the Strategy, Abstract Factory, and Singleton Design Patterns
  10. Deep Dive into Dependency Injection
  11. Options and Logging Patterns
  12. Section 3: Designing at Component Scale
  13. Structural Patterns
  14. Behavioral Patterns
  15. Understanding the Operation Result Design Pattern
  16. Section 4: Designing at Application Scale
  17. Understanding Layering
  18. Getting Started with Object Mappers
  19. Mediator and CQRS Design Patterns
  20. Getting Started with Vertical Slice Architecture
  21. Introduction to Microservices Architecture
  22. Section 5: Designing the Client Side
  23. ASP.NET Core User Interfaces
  24. A Brief Look into Blazor
  25. Appendices
  26. Appendix A
  27. Appendix B
  28. Assessment Answers
  29. Acronyms Lexicon
  30. Other Books You May Enjoy
  31. Index
3.129.70.157