The three last applications explained by the Pro C# with .NET 6 book are what types of apps?
ASP.NET Core RESTful service, ASP.NET Core web app (using MVC pattern), ASP.NET Core web app using Razor pages
What web server could ASP.NET Core applications use after the dependency on System.Web was removed in the rewrite of ASP.NET?
Kestrel
What encompasses ASP.NET MVC, ASP.NET Web API, and Razor Pages in a single development framework?
ASP.NET Core
What command can be used instead of dotnet run in ASP.NET Core development to run with Hot Reload enabled?
dotnet watch
What is the base class of Controller in ASP.NET Core?
ControllerBase
What are methods on an ASP.NET controller that return an IActionResult (or Task<IActionResult> for async operations) or a class that implements IActionResult?
Actions
What is the ASP.NET Core type that a controller action returns?
IActionResult
What approach to preventing cross-site request forgery attacks does ASP.NET Core use which creates a unique and unpredictable server side token that is sent to the browser and must come back in any request from the browser or the request is refused?
Synchronizer Token Pattern (STP)
What attribute can be added to an HTTP Post method in an ASP.NET Core application to opt in for the STP token validation (this is enabled by default in Razor Page Web Apps)?
ValidateAntiForgeryToken
By convention, where are ASP.NET Core controllers placed in the directory structure?
Controllers
What is the web server typically used to run ASP.NET Core apps that can also act as a reverse proxy to use IIS, Apache, Nginx, etc.?
Kestrel
What is the command to run an ASP.NET Core app with "Hot Reload" enabled?
dotnet watch
With the unification of ASP.NET Core (combining ASP.NET MVC5 and ASP.NET Web API), the Controller, ApiController, and AsyncController base classes have been combined into one class, Controller, which has what base class?
ControllerBase
ASP.NET Core is developed as a modular system of what?
NuGet packages
What folder is where the views are placed in an ASP.NET Core (MVC style) application?
Views
What special folder for views in an ASP.NET Core app is accessible to all controllers and their action methods?
Shared
What would be the views folder specifically for the views used by the HomeController class in ASP.NET Core?
Views/Home
What is the folder where pages for the application are stored when building web applications using Razor pages?
Pages
What special folder under Pages in a Razor page based web application is accessible to all pages?
Shared
What feature can be used to organize related functionality into a group as a separate namespace for routing and folder structure for views and Razor pages where each gets its own set of controllers (API apps), controllers and views (MVC style), and pages (Razor page based apps)?
Areas
What parent folder stores the areas in ASP.NET Core?
Areas
What is the folder in ASP.NET Core web applications that the client side files are placed in?
wwwroot
What feature refers to how ASP.NET Core matches HTTP requests to the proper executable endpoints to handle those requests, and also create URLs from executable endpoints?
Routing
What is the C# attribute used in attribute routing in ASP.NET Core?
Route (or HttpGet, HttpPost, etc. to specify a specific HTTP verb)
Example: [Route("/Home")]
What type in ASP.NET Core is involved in model binding and contains an entry for every property being bound and an entry for the model itself?
ModelState
What feature of ASP.NET Core is a process where the name-value pairs submitted in an HTTP Post call are used to assign values to models?
Model binding
What is the ordered collection that holds URL patterns with variable placeholders (tokens) and optional literals that are the route definitions in an ASP.NET Core app?
The route table
What is it called when routes in an ASP.NET Core app are configured using C# attributes on controllers and their action methods?
Attribute routing
What are the optional placeholders in the route table's URL patterns called in ASP.NET Core?
Tokens
What is the difference between a double ** and a single * in a route definition like car/{**slug} (ASP.NET Core)?
** preserves path separator characters while * does not
What is a restriction on defining routes using tokens in ASP.NET Core?
There must be a literal value separating the tokens
Example:
{controller}/{action}/{id?} is valid
{controller}{action}{id?} is not valid
What is the process where ASP.NET Core uses the name-value pairs submitted in an HTTP Post call to assign values to models?
Model binding
What are the three reserved route tokens for ASP.NET MVC and RESTful service apps?
Area, Controller, Action
Previous card
First card
Random order
Next card