mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-06-08 10:47:13 +00:00
Merge branch 'main' of https://github.com/m-lamonaca/ProgrammingNotes
This commit is contained in:
commit
78aec8b7f9
36 changed files with 21 additions and 25 deletions
|
@ -9,8 +9,8 @@ Components are .NET C# classes built into .NET assemblies that:
|
|||
- Can be nested and reused.
|
||||
- Can be shared and distributed as Razor class libraries or NuGet packages.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
The component class is usually written in the form of a Razor markup page with a `.razor` file extension. Components in Blazor are formally referred to as *Razor components*.
|
||||
|
||||
|
|
|
@ -13,10 +13,8 @@ Custom filters can be created to handle cross-cutting concerns. Examples of cros
|
|||
|
||||
Filters run within the *ASP.NET Core action invocation pipeline*, sometimes referred to as the *filter pipeline*. The filter pipeline runs after ASP.NET Core selects the action to execute.
|
||||
|
||||
![1][filter-pipeline-1] ![2][filter-pipeline-2]
|
||||
|
||||
[filter-pipeline-1]: https://docs.microsoft.com/it-it/aspnet/core/mvc/controllers/filters/_static/filter-pipeline-1.png
|
||||
[filter-pipeline-2]: https://docs.microsoft.com/en-gb/aspnet/core/mvc/controllers/filters/_static/filter-pipeline-2.png
|
||||

|
||||

|
||||
|
||||
## **Filter types**
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ When a middleware short-circuits, it's called a *terminal middleware* because
|
|||
|
||||
The ASP.NET Core request pipeline consists of a sequence of request delegates, called one after the other.
|
||||
|
||||

|
||||

|
||||
|
||||
Each delegate can perform operations before and after the next delegate. Exception-handling delegates should be called early in the pipeline, so they can catch exceptions that occur in later stages of the pipeline. It's possible to chain multiple request delegates together with `Use`.
|
||||
|
||||
|
@ -74,8 +74,8 @@ public class Startup
|
|||
|
||||
## Middleware Order
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
The Endpoint middleware executes the filter pipeline for the corresponding app type.
|
||||
|
||||
|
|
|
@ -1305,7 +1305,7 @@ public static System.Collections.IEnumerable<int> IterateRange(int start = 0, in
|
|||
|
||||
## Structs (Custom Value Types) & Classes (Custom Reference Types)
|
||||
|
||||

|
||||

|
||||
|
||||
**Structure** types have _value semantics_. That is, a variable of a structure type contains an _instance_ of the type.
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ The term *view* in Xamarin.Forms denotes familiar types of presentation and inte
|
|||
|
||||
## Pages
|
||||
|
||||

|
||||

|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
|
@ -48,7 +48,7 @@ The term *view* in Xamarin.Forms denotes familiar types of presentation and inte
|
|||
|
||||
## Layouts
|
||||
|
||||

|
||||

|
||||
|
||||
- StackLayout: Organizes views linearly, either horizontally or vertically.
|
||||
- AbsoluteLayout: Organizes views by setting coordinates & size in terms of absolute values or ratios.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue