Mastering ASP.NET Core 2.0

Become an expert in the shiny new version of ASP.NET
Preview in Mapt

Mastering ASP.NET Core 2.0

Ricardo Peres

Become an expert in the shiny new version of ASP.NET
Mapt Subscription
FREE
$29.99/m after trial
eBook
$10.00
RRP $39.99
Save 74%
Print + eBook
$49.99
RRP $49.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$10.00
$49.99
$29.99 p/m after trial
RRP $39.99
RRP $49.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


Mastering ASP.NET Core 2.0 Book Cover
Mastering ASP.NET Core 2.0
$ 39.99
$ 10.00
Learning ASP.NET Core 2.0 Book Cover
Learning ASP.NET Core 2.0
$ 35.99
$ 10.00
Buy 2 for $20.00
Save $55.98
Add to Cart

Book Details

ISBN 139781787283688
Paperback494 pages

Book Description

ASP.NET is an open source web framework that builds modern web apps and services. This book is your one-stop guide to the new features of ASP.NET Core 2.0, including web APIs and MVC. We begin with a brief overview of the basics, taking you through the MVC pattern, platforms, dependencies, and frameworks. We then move on to setting up and configuring the MVC environment before talking about routing and advanced routing options. Next, we'll look at model binding, controllers and actions, filters, user authentication, and testing.

Moving on, you’ll learn about all the aspects of syntax and processes when working with Razor. You’ll be introduced to client-side development and will get to know about the security aspects of ASP.NET Core. We will also look at Microservices with ASP.NET Core. Finally, you’ll find out how to deploy ASP.NET Core to new environments such as Azure, AWS, and Docker. By the end of the book, you will be well versed with development in ASP.NET Core and will have a deep understanding of how to interact with the framework and work cross-platform.

Table of Contents

Chapter 1: Getting Started with ASP.NET Core
Introducing ASP.NET Core
.NET Core
Platforms
Dependencies and frameworks
Understanding the MVC pattern
Getting one's context
The OWIN pipeline
Hosting
Inversion of control and dependency injection
Knowing the environments
A sample project
Summary
Chapter 2: Configuration
Configuration in .NET Core
Providers
Using configuration values
Putting it all together
Summary
Chapter 3: Routing
Routing tables
Route templates
Route parameter matching
Route selection
Route defaults
Route handlers
Route constraints
Route data tokens
Areas
Routing attributes
Dealing with errors
Putting it all together
Summary
Chapter 4: Controllers and Actions
Using controllers
Finding controllers
Controller life cycle
Actions
API actions
Maintaining state
Dependency injection
Globalization and localization
Putting it all together
Summary
Chapter 5: Views
View classes
Locating views
View layouts
Areas
Dependency injection
Razor Pages
Putting it all together
Summary
Chapter 6: Using Forms and Models
Form context
Model metadata
HTML helpers
Templates
Model binding
Model validation
AJAX
Uploading files
Putting it all together
Summary
Chapter 7: Security
Authentication
Authorization
Anti-forgery
HTML encoding
HTTPS
CORS
Data protection
Static files
Putting it all together
Summary
Chapter 8: Reusable Components
View components
Tag helpers
Tag helper components
Partial views
Putting it all together
Summary
Chapter 9: Filters
Types of filters
Authorization filters
Resource filters
Understanding action filters
Result filters
Exception filters
Page filters
Putting it all together
Summary
Chapter 10: Logging, Tracing, and Diagnostics
Common logging
Custom logging middleware
Diagnostics
Telemetry
Health checking
Putting it all together
Summary
Chapter 11: Testing
Unit testing
Integration testing
Putting it all together
Summary
Chapter 12: Client-Side Development
Using Bower
Using Node.js
Using Gulp
Using Grunt
Using TypeScript
Using Less
Putting it all together
Summary
Chapter 13: Improving the Performance and Scalability
Profiling
Hosting
Bundling and minification
Asynchronous actions
Caching
Compressing responses
Putting it all together
Summary
Chapter 14: Real-Time Communication
Setting up SignalR
Hosting a hub
Communication protocols
SignalR context
Message targets
Communicating from the outside
Summary
Chapter 15: Other Topics
Areas
Working with static files and folders
Application lifetime events
Embedded resources
Hosting extensions
Custom conventions
URL rewriting
Putting it all together
Summary
Chapter 16: Deployment
Manual deployment
Visual Studio deployment
IIS
Nginx
Azure
AWS
Docker
Windows Service
Putting it all together
Summary

What You Will Learn

  • Get to know the new features of ASP.NET Core 2.0
  • Find out how to configure ASP.NET Core
  • Configure routes to access ASP.NET Core resources
  • Create controllers and action methods and see how to maintain the state
  • Create views to display contents
  • Implement and validate forms and retrieve information from them
  • Write reusable modules for ASP.NET Core
  • Deploy ASP.NET Core to other environments

Authors

Table of Contents

Chapter 1: Getting Started with ASP.NET Core
Introducing ASP.NET Core
.NET Core
Platforms
Dependencies and frameworks
Understanding the MVC pattern
Getting one's context
The OWIN pipeline
Hosting
Inversion of control and dependency injection
Knowing the environments
A sample project
Summary
Chapter 2: Configuration
Configuration in .NET Core
Providers
Using configuration values
Putting it all together
Summary
Chapter 3: Routing
Routing tables
Route templates
Route parameter matching
Route selection
Route defaults
Route handlers
Route constraints
Route data tokens
Areas
Routing attributes
Dealing with errors
Putting it all together
Summary
Chapter 4: Controllers and Actions
Using controllers
Finding controllers
Controller life cycle
Actions
API actions
Maintaining state
Dependency injection
Globalization and localization
Putting it all together
Summary
Chapter 5: Views
View classes
Locating views
View layouts
Areas
Dependency injection
Razor Pages
Putting it all together
Summary
Chapter 6: Using Forms and Models
Form context
Model metadata
HTML helpers
Templates
Model binding
Model validation
AJAX
Uploading files
Putting it all together
Summary
Chapter 7: Security
Authentication
Authorization
Anti-forgery
HTML encoding
HTTPS
CORS
Data protection
Static files
Putting it all together
Summary
Chapter 8: Reusable Components
View components
Tag helpers
Tag helper components
Partial views
Putting it all together
Summary
Chapter 9: Filters
Types of filters
Authorization filters
Resource filters
Understanding action filters
Result filters
Exception filters
Page filters
Putting it all together
Summary
Chapter 10: Logging, Tracing, and Diagnostics
Common logging
Custom logging middleware
Diagnostics
Telemetry
Health checking
Putting it all together
Summary
Chapter 11: Testing
Unit testing
Integration testing
Putting it all together
Summary
Chapter 12: Client-Side Development
Using Bower
Using Node.js
Using Gulp
Using Grunt
Using TypeScript
Using Less
Putting it all together
Summary
Chapter 13: Improving the Performance and Scalability
Profiling
Hosting
Bundling and minification
Asynchronous actions
Caching
Compressing responses
Putting it all together
Summary
Chapter 14: Real-Time Communication
Setting up SignalR
Hosting a hub
Communication protocols
SignalR context
Message targets
Communicating from the outside
Summary
Chapter 15: Other Topics
Areas
Working with static files and folders
Application lifetime events
Embedded resources
Hosting extensions
Custom conventions
URL rewriting
Putting it all together
Summary
Chapter 16: Deployment
Manual deployment
Visual Studio deployment
IIS
Nginx
Azure
AWS
Docker
Windows Service
Putting it all together
Summary

Book Details

ISBN 139781787283688
Paperback494 pages
Read More

Read More Reviews

Recommended for You

ASP.NET Core: Cloud-ready, Enterprise Web Application Development Book Cover
ASP.NET Core: Cloud-ready, Enterprise Web Application Development
$ 79.99
$ 10.00
C# 7 and .NET Core Cookbook Book Cover
C# 7 and .NET Core Cookbook
$ 39.99
$ 10.00
ASP.NET Core 2 High Performance - Second Edition Book Cover
ASP.NET Core 2 High Performance - Second Edition
$ 39.99
$ 10.00
Learning ASP.NET Core 2.0 Book Cover
Learning ASP.NET Core 2.0
$ 35.99
$ 10.00
Bootstrap Site Blueprints Book Cover
Bootstrap Site Blueprints
$ 26.99
$ 10.00
Bootstrap for ASP.NET MVC - Second Edition Book Cover
Bootstrap for ASP.NET MVC - Second Edition
$ 31.99
$ 10.00