Book description
Fully updated to ASP.NET 5.0, ASP.NET Core in Action, Second Edition is a hands-on primer to building cross-platform web applications with your C# and .NET skills. Even if you've never worked with ASP.NET you'll start creating productive cross-platform web apps fast.About the Technology
Build full-stack web applications that run anywhere. Developers love ASP.NET Core for its libraries and pre-built components that maximize productivity. Version 5.0 offers new features for server-side apps, as well as background services for cross-platform development.
About the Book
ASP.NET Core in Action, Second Edition is a comprehensive guide to creating web applications with ASP.NET Core 5.0. Go from basic HTTP concepts to advanced framework customization. Illustrations and annotated code make learning visual and easy. Master logins, dependency injection, security, and more. This updated edition covers the latest features, including Razor Pages and the new hosting paradigm.
What's Inside
- Developing apps for Windows and non-Windows servers
- Configuring applications
- Building custom components
- Logging, testing, and security
About the Reader
For intermediate C# developers.
About the Author
Andrew Lock is a Microsoft MVP who has worked with ASP.NET Core since before its first release.
Quotes
One of the greatest and most complete books about ASP.NET Core!
- Delcoigne Vincent, Wavenet
Fantastic book. The topics are explained clearly and thoroughly.
- Luis Moux, EMO
A comprehensive reference for ASP.NET Core.
- Jean-François Morin, Laval University
The most comprehensive ASP.NET Core book on the market. It covers just about everything you need to learn to quickly become productive in the often confusing and fast-changing world of .NET Core.
- Filip Wojcieszyn, Sonova AG
Publisher resources
Table of contents
- inside front cover
- ASP.NET Core in Action
- Copyright
- brief contents
- contents
- front matter
- Part 1. Getting started with ASP.NET Core
- 1 Getting started with ASP.NET Core
-
2 Your first application
- 2.1 A brief overview of an ASP.NET Core application
- 2.2 Creating your first ASP.NET Core application
- 2.3 Running the web application
- 2.4 Understanding the project layout
- 2.5 The .csproj project file: Defining your dependencies
- 2.6 The Program class: Building a web host
- 2.7 The Startup class: Configuring your application
- 2.8 Generating responses with Razor Pages
- Summary
- 3 Handling requests with the middleware pipeline
- 4 Creating a website with Razor Pages
- 5 Mapping URLs to Razor Pages using routing
- 6 The binding model: Retrieving and validating user input
- 7 Rendering HTML using Razor views
- 8 Building forms with Tag Helpers
-
9 Creating a Web API for mobile and client applications using MVC
- 9.1 What is a Web API and when should you use one?
- 9.2 Creating your first Web API project
- 9.3 Applying the MVC design pattern to a Web API
- 9.4 Attribute routing: Linking action methods to URLs
- 9.5 Using common conventions with the [ApiController] attribute
- 9.6 Generating a response from a model
- Summary
- Part 2. Building complete applications
-
10 Service configuration with dependency injection
- 10.1 Introduction to dependency injection
-
10.2 Using the dependency injection container
- 10.2.1 Adding ASP.NET Core framework services to the container
- 10.2.2 Registering your own services with the container
- 10.2.3 Registering services using objects and lambdas
- 10.2.4 Registering a service in the container multiple times
- 10.2.5 Injecting services into action methods, page handlers, and views
- 10.3 Understanding lifetimes: When are services created?
- Summary
- 11 Configuring an ASP.NET Core application
- 12 Saving data with Entity Framework Core
-
13 The MVC and Razor Pages filter pipeline
- 13.1 Understanding filters and when to use them
-
13.2 Creating custom filters for your application
- 13.2.1 Authorization filters: Protecting your APIs
- 13.2.2 Resource filters: Short-circuiting your action methods
- 13.2.3 Action filters: Customizing model binding and action results
- 13.2.4 Exception filters: Custom exception handling for your action methods
- 13.2.5 Result filters: Customizing action results before they execute
- 13.2.6 Page filters: Customizing model binding for Razor Pages
- 13.3 Understanding pipeline short-circuiting
- 13.4 Using dependency injection with filter attributes
- Summary
-
14 Authentication: Adding users to your application with Identity
- 14.1 Introducing authentication and authorization
- 14.2 What is ASP.NET Core Identity?
- 14.3 Creating a project that uses ASP.NET Core Identity
- 14.4 Adding ASP.NET Core Identity to an existing project
- 14.5 Customizing a page in ASP.NET Core Identity’s default UI
- 14.6 Managing users: Adding custom data to users
- Summary
- 15 Authorization: Securing your application
- 16 Publishing and deploying your application
- Part 3. Extending your applications
- 17 Monitoring and troubleshooting errors with logging
- 18 Improving your application’s security
- 19 Building custom components
- 20 Building custom MVC and Razor Pages components
- 21 Calling remote APIs with IHttpClientFactory
- 22 Building background tasks and services
- 23 Testing your application
- appendix A. Preparing your development environment
- appendix B. Understanding the .NET ecosystem
- appendix C. Useful references
- index
Product information
- Title: ASP.NET Core in Action, Second Edition
- Author(s):
- Release date: May 2021
- Publisher(s): Manning Publications
- ISBN: 9781617298301
You might also like
book
ASP.NET Core in Action, Third Edition
Build professional-grade full-stack web applications using C# and ASP.NET Core. In ASP.NET Core in Action, Third …
book
ASP.NET Core in Action
ASP.NET Core in Action is for C# developers without any web development experience who want to …
video
Ultimate ASP.NET Core Web API Development Guide
Microsoft .NET is the platform that drives the business technology of many of the top corporations …
book
Building Web APIs with ASP.NET Core
Build fully-featured APIs with ASP.NET Core! This all-practical guide is written like a real development project, …