▶Book Description
ASP.NET has been the preferred choice of web developers for a long time. With ASP.NET Core 3, Microsoft has made internal changes to the framework along with introducing new additions that will change the way you approach web development. This second edition has been thoroughly updated to help you make the most of the latest features in the framework, right from gRPC and conventions to Blazor, which has a new chapter dedicated to it.
You’ll begin with an overview of the essential topics, exploring the Model-View-Controller (MVC) pattern, various platforms, dependencies, and frameworks. Next, you’ll learn how to set up and configure the MVC environment, before delving into advanced routing options. As you advance, you’ll get to grips with controllers and actions to process requests, and later understand how to create HTML inputs for models. Moving on, you'll discover the essential aspects of syntax and processes when working with Razor. You'll also get up to speed with client-side development and explore the testing, logging, scalability, and security aspects of ASP.NET Core. Finally, you'll learn how to deploy ASP.NET Core to several environments, such as Azure, Amazon Web Services (AWS), and Docker.
By the end of the book, you’ll be well versed in development in ASP.NET Core and will have a deep understanding of how to interact with the framework and work cross-platform.
▶What You Will Learn
- Understand the new capabilities of ASP.NET Core 3.1
- Become well versed in how to configure ASP.NET Core to use it to its full potential
- Create controllers and action methods, and understand how to maintain state
- Implement and validate forms and retrieve information from them
- Improve productivity by enforcing reuse, process forms, and effective security measures
- Delve into the new Blazor development model
- Deploy ASP.NET Core applications to new environments, such as Microsoft Azure, AWS, and Docker
▶Key Features
- Delve into MVC patterns, configuration, routing, and deployment to build professional-grade applications
- Learn how to integrate ASP applications with the JavaScript frameworks React, Vue, and Angular
- Improve the performance of applications and the development team by implementing advanced ASP.NET Core concepts
▶Who This Book Is For
If you are a developer with basic knowledge of ASP.NET MVC and want to build powerful applications, then this book is for you. Developers who want to explore the latest changes in ASP.NET Core 3.1 to build professional-level applications will also find this book useful. Familiarity with C#, ASP.NET Core, HTML, and CSS is expected to get the most out of this book.
▶What this book covers
- Chapter 1, Getting Started with ASP.NET Core, explains the very basics of .NET and ASP.NET Core, including the MVC pattern, which is the typical usage pattern of ASP.NET Core.
- Chapter 2, Configuration, presents you with the configuration options available to .NET/ASP.NET Core developers.
- Chapter 3, Routing, explains how an HTTP request is mapped to controller actions by means of routes, how they are selected, and how the parameters are matched.
- Chapter 4, Controllers and Actions, explains how controllers and actions work, what API and OData controllers are, what the life cycle of a controller is, and how controllers are found.
- Chapter 5, Views, explains how to work with views, which make up the user interface of ASP.NET Core.
- Chapter 6, Using Forms and Models, shows us how to work with user-submitted data in forms.
- Chapter 7, Implementing Razor Pages, describes what Razor Pages are—an alternative development model for ASP.NET Core.
- Chapter 8, API Controllers, shows us how to work with API (non-visual) controllers.
- Chapter 9, Reusable Components, talks about reusability in ASP.NET Core.
- Chapter 10, Understanding Filters, talks about the different kinds of filters available to ASP.NET Core developers.
- Chapter 11, Security, shows us how to implement authentication and authorization. Here, we will also cover how to enforce HTTPS security and how to prevent tampering.
- Chapter 12, Logging, Tracing, and Diagnostics, explains how we can get a glimpse of what is going on with our ASP.NET Core application.
- Chapter 13, Understanding How Testing Works, explains how to add unit and functional/integration tests to our solutions.
- Chapter 14, Client-Side Development, covers how to integrate ASP.NET Core with common client-side frameworks.
- Chapter 15, Improving the Performance and Scalability, covers how to improve the performance of our web application.
- Chapter 16, Real-Time Communication, will help us learn how to apply real-time communication techniques to code.
- Chapter 17, Introducing Blazor, is a new addition to this version and will explain Blazer for interoperability, dependency injections, HTTP calls, and more.
- Chapter 18, gRPC and Other Topics, is a collection of topics and framework details that an ASP.NET Core developer ought to know but that didn't fit into the rest of the chapters of this book.
- Chapter 19, Application Deployment, will help us learn how to deploy an ASP.NET Core application to different targets, such as on-premises and the cloud.
- Chapter 20, Appendix A: The dotnet Tool, provides a short description of the basics and other useful topics relating to ASP.NET Core, including a description of its tools and features.