Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
ASP.NET Core 5 for Beginners
Why subscribe?
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Code in Action
Download the color images
Conventions used
Get in touch
Reviews
Section 1 – Crawling
Chapter 1: Introduction to ASP.NET Core 5
Technical requirements
Explaining ASP.NET Core
Managed versus unmanaged code
Introducing the .NET platform
Supportability strategy
Refreshing your C# knowledge
What's new in .NET 5?
What's new in C# 9?
Understanding websites and web servers
Web server configuration
Certificate trust
Session stickiness
Troubleshooting communication with web servers
Choosing a web server option
Exploring Visual Studio Code
Leveraging Windows Terminal
Summary
Questions
Further reading
Chapter 2: Cross-Platform Setup
Technical requirements
Leveraging the .NET framework
Why cross-platform?
Why not cross-platform?
Combining cross-platform and single-platform code
.NET cross-platform availability
What cross-platform does not do for you
Getting started on Windows, Linux, and macOS
Windows
Linux
Windows Subsystem for Linux (WSL)
macOS
A word on cross-platform and containers
Making your code cross-platform
A more complicated cross-platform example
Self-contained .NET apps
Cross-platform for mobile devices
Debugging Linux on Windows with Visual Studio 2019
Summary
Questions
Appendix
Installing your app as a Windows service – the advanced method
Chapter 3: Dependency Injection
Technical requirements
Learning dependency injection in ASP.NET Core
Understanding what DI is
The common dependency problem
Registering the service
Benefits of DI
Reviewing types of dependency injection
Constructor injection
Method injection
Property injection
View injection
Understanding dependency injection containers
Understanding dependency lifetimes
Transient service
Scoped service
Singleton service
Handling complex scenarios
Service descriptors
Add versus TryAdd
Dealing with multiple service implementations
Replacing and removing service registrations
Summary
Questions
Further reading
Chapter 4: Razor View Engine
Technical requirements
Understanding the Razor view engine
Reviewing the Razor view engine
Learning the basics of Razor syntax
Rendering simple data
Rendering data from a view model
Introduction to HTML helpers and tag helpers
Building a to-do application with MVC
Understanding the MVC pattern
Creating an MVC application
Running the app for the first time
Configuring in-memory databases
Creating the to-do controller
Creating a view
Running the to-do app
Implementing add item functionality
Implementing edit functionality
Building a to-do app with Razor Pages
Reviewing Razor Pages
Creating a Razor Pages application
Understanding the Razor Pages structure
Creating the to-do pages
Differences between MVC and Razor Pages
Summary
Further reading
Chapter 5: Getting Started with Blazor
Technical requirements
Understanding the Blazor web framework
Reviewing the different flavors of Blazor
Five players, one goal
Building a tourist spot application
Creating the backend application
Configuring an in-memory database
Implementing real-time functionality with SignalR
Creating the API endpoints
Summary
Questions
Further reading
Section 2 – Walking
Chapter 6: Exploring the Blazor Web Framework
Creating the Blazor Server project
Creating the model
Implementing a service for web API communication
Implementing the application state
Creating Razor components
Running the application
Creating the Blazor Web Assembly project
Creating the model
Composing the Index component
Running the application
Uninstalling the PWA app
Summary
Further reading
Chapter 7: APIs and Data Access
Technical requirements
Understanding Entity Framework Core
Reviewing EF Core design workflows
Learning database-first development
Creating a .NET Core console app
Integrating Entity Framework Core
Creating a database
Generating models from an existing database
Performing basic database operations
Learning code-first development
Reviewing ASP.NET Core Web API
Creating a Web API project
Configuring data access
Managing database migrations
Reviewing DTO classes
Creating Web API endpoints
Summary
Further reading
Chapter 8: Working with Identity in ASP.NET
Technical requirements
Understanding authentication concepts
Base64 encoding
How hashing works
Understanding authorization concepts
The role of middleware in ASP.NET and identity
OAuth and OpenID Connect basics
JSON web tokens
How to generate/issue a token
How to validate a token
Integrating with Azure Active Directory
Understanding single tenancy versus multi-tenancy
Understanding consent and permissions
Working with federated identity
Summary
Questions
Further reading
Chapter 9: Getting Started with Containers
Technical requirements
Hardware virtualization
Overview of containerization
Getting started with Docker
What is Docker?
Installing Docker
Windows Security Alert
Running Redis on Docker
Starting Redis
Running ASP.NET Core in a container
Accessing Redis
Adding container support
Docker multi-container support
Summary
Questions
Further reading
Section 3 – Running
Chapter 10: Deploying to AWS and Azure
Technical requirements
Working with AWS
Working with Azure
GitHub source code
Overview of cloud computing
Cloud computing models
Cloud computing providers
Creating a sample ASP.NET Core web application
Adding a health endpoint
Publishing to AWS
Creating a user for publishing from Visual Studio
Publishing from AWS
Publishing to Azure
Using the Publish wizard in Azure
Azure next steps
Summary
Questions
Further reading
Chapter 11: Browser and Visual Studio Debugging
Technical requirements
Browser
GitHub source
Setting up the sample application
Creating a progressive web application
Saving the state of an application
Understanding PWAs
Accessing browser session and local storage
Using debugging tools in the browser
The Elements tab
The Console tab
The Sources tab
The Network tab
The Application tab
Debugging in Visual Studio
Controlling the application launch and target
Logging activity
Setting a breakpoint
Using conditional breakpoints
Summary
Questions
Further reading
Chapter 12: Integrating with CI/CD
Technical requirements
An overview of CI/CD
Understanding why CI/CD
Introducing GitHub
Is GitHub free?
Some Git terminology
Making a copy of the repo
GitHub support for CI/CD
Building CI/CD using GitHub Actions
What is GitHub Pages?
Creating a CI/CD workflow
Creating a continuous integration job
Creating a continuous deployment job
Monitoring actions
Configuring GitHub Pages
Fixing the base reference
Logging the CI/CD workflow
Next steps with GitHub Actions
Summary
Questions
Further reading
Chapter 13: Developing Cloud-Native Apps
Technical requirements
What makes an application cloud-native?
Comparing characteristics of on-premises versus the cloud
Monolithic versus microservices architecture
Planning for scalability
Working with different database types
Synchronicity and multi-processing tasks
Avoiding failure versus expecting failure
Understanding cloud update schedules
Administration of servers and services
Pets versus cattle
Understanding the role of DevOps
Understanding cost in the cloud
Cloud storage versus local disk
Ephemeral versus persistent storage
Storing and reading files in Azure Blob storage
Dealing with storage latency
Introducing Infrastructure as Code (IaC)
Imperative IaC
Declarative IaC
Learning about monitoring and health
Summary
Questions
Further reading
Assessments
Chapter 1 – Introduction to ASP.NET Core 5
Chapter 2 – Cross-Platform Setup
Chapter 3 – Dependency Injection
Chapter 5 – Getting Started with Blazor
Chapter 8 – Working with Identity in ASP.NET
Chapter 9 – Getting Started with Containers
Chapter 10 – Deploying to AWS and Azure
Chapter 11 – Browser and Visual Studio Debugging
Chapter 12 – Integrating with CI/CD
Chapter 13 – Developing Cloud-Native Apps
Other Books You May Enjoy
Modern Web Development with ASP.NET Core 3 - Second Edition
Practical Microservices with Dapr and .NET
Leave a review - let other readers know what you think
← Prev
Back
Next →
← Prev
Back
Next →