Modern Web Development with ASP.NET Core 3 - Second Edition
- FREE Subscription Read for free
-
What do you get with a Packt Subscription?
- Instant access to this title and 7,500+ eBooks & Videos
- Constantly updated with 100+ new titles each month
- Breadth and depth in over 1,000+ technologies
-
Free ChapterSection 1: The Fundamentals of ASP.NET Core 3
-
Getting Started with ASP.NET Core
- Getting Started with ASP.NET Core
- Technical requirements
- Getting started
- Beginning with .NET Core
- Dependencies and frameworks
- Understanding the generic host
- Understanding the MVC pattern
- Getting your context
- Understanding the OWIN pipeline
- Hosting ASP.NET Core
- Inversion of control and dependency injection
- Knowing the environments
- Understanding the project templates
- What's new since version 2.0?
- The NuGet and dotnet tools
- Summary
- Questions
-
Configuration
-
Routing
- Routing
- Technical requirements
- Getting started
- Endpoint routing
- Route configuration
- Creating routing tables
- Using route templates
- Matching route parameters
- Using dynamic routing
- Selecting routes from attributes
- Host selection from attributes
- Setting route defaults
- Routing to inline handlers
- Applying route constraints
- Route data tokens
- Routing to areas
- Using routing attributes
- Error handling in routing
- Summary
- Questions
-
Controllers and Actions
-
Views
- Views
- Technical requirements
- Getting started
- Understanding views
- Understanding the view life cycle
- Locating views
- Using view engines
- Logging and diagnostics
- View compilation
- Passing data to views
- Understanding view layouts
- Understanding partial views
- Understanding the special view files
- Understanding the view options
- Using areas
- Dependency injection
- Using translations
- Summary
- Questions
-
Section 2: Improving Productivity
-
Using Forms and Models
-
Implementing Razor Pages
-
API Controllers
- API Controllers
- Technical requirements
- Getting started with web APIs
- Understanding REST
- Model binding
- Authorizing access to resources
- Applying OpenAPI REST conventions
- Returning validation results
- Performing content negotiation
- Handling errors
- Understanding API versioning
- Generating API documentation
- Serving OData
- Summary
- Questions
-
Reusable Components
-
Understanding Filters
-
Security
-
Section 3: Advanced Topics
-
Logging, Tracing, and Diagnostics
-
Understanding How Testing Works
-
Client-Side Development
-
Improving Performance and Scalability
-
Real-Time Communication
-
Introducing Blazor
-
gRPC and Other Topics
- gRPC and Other Topics
- Technical requirements
- Using areas for organizing code
- Working with static files and folders
- Application lifetime events
- Working with embedded resources
- Hosting extensions
- Hosting background services
- ASP.NET Core model conventions
- Applying URL rewriting
- Using EF Core
- Understanding the gRPC framework
- Using HTTP client factories
- Summary
- Questions
-
Application Deployment
-
Assessments
-
Other Books You May Enjoy
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.
- Publication date:
- June 2020
- Publisher
- Packt
- Pages
- 802
- ISBN
- 9781789619768