You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-35Lines changed: 35 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
-
# Samples for ASP.NET Core 8.0
1
+
# Samples for ASP.NET Core 8.0
2
2
3
3
> [!NOTE]
4
4
> This repository is WIP. I am updating all the previous samples from .NET 6/7 to .NET 8. Check the previous stable branch ([6.0](https://github.com/dodyg/practical-aspnetcore/tree/net6.0/)) if you want to browse the existing stable samples that contains also .NET 7/8 samples.
5
5
6
-
Greetings from Cairo, Egypt. You can [sponsor](https://github.com/sponsors/dodyg) this project [here](https://github.com/sponsors/dodyg).
6
+
Greetings from Cairo, Egypt. You can [sponsor](https://github.com/sponsors/dodyg) this project [here](https://github.com/sponsors/dodyg).
7
7
8
8
## Previous versions
9
9
@@ -13,7 +13,7 @@ Greetings from Cairo, Egypt. You can [sponsor](https://github.com/sponsors/dodyg
We are using `IApplicationLifetime` that trigger events during application startup and shutdown.
95
+
We are using `IApplicationLifetime` that trigger events during application startup and shutdown.
96
96
97
97
-[Short Circuit](map-short-circuit)
98
98
99
-
Use `MapShortCircuit` or `.ShortCircuit()` to efficiently respond to a request without going through a middleware pipeline run.
99
+
Use `MapShortCircuit` or `.ShortCircuit()` to efficiently respond to a request without going through a middleware pipeline run.
100
100
101
101
### Server-Sent Events (1)
102
102
103
-
-[Forever Server](/projects/sse)
103
+
-[Forever Server](/projects/sse)
104
104
105
-
This server will send a 'hello world' greeting forever.
105
+
This server will send a 'hello world' greeting forever.
106
106
107
107
### Markdown (2)
108
108
109
-
-[Markdown server](/projects/markdown-server)
109
+
-[Markdown server](/projects/markdown-server)
110
110
111
-
Serve markdown file as html file. You will see how you can create useful app using a few basic facilities in aspnetcore.
111
+
Serve markdown file as html file. You will see how you can create useful app using a few basic facilities in aspnetcore.
112
112
113
-
We take `"Markdig"` as dependency.
113
+
We take `"Markdig"` as dependency.
114
114
115
-
-[Markdown server - implemented as middleware component](/projects/markdown-server-middleware)
115
+
-[Markdown server - implemented as middleware component](/projects/markdown-server-middleware)
116
116
117
-
Serve markdown file as html file. It has the same exact functionality as [Markdown server](/projects/markdown-server) but implemented using middleware component.
117
+
Serve markdown file as html file. It has the same exact functionality as [Markdown server](/projects/markdown-server) but implemented using middleware component.
This class provides convenient constants for some common MIME types. It's not extensive by any means however `MediaTypeNames.Text.Html` and `MediaTypeNames.Application.Json` come handy.
129
+
This class provides convenient constants for some common MIME types. It's not extensive by any means however `MediaTypeNames.Text.Html` and `MediaTypeNames.Application.Json` come handy.
Using `FileExtensionContentTypeProvider` to obtain the correct MIME type of a filename extension.
133
+
Using `FileExtensionContentTypeProvider` to obtain the correct MIME type of a filename extension.
134
134
135
135
### Device Detection (1)
136
136
137
137
The samples in this section rely on [Wangkanai.Detection](https://github.com/wangkanai/Detection) library.
138
138
139
-
-[Device Detection](/projects/device-detection)
139
+
-[Device Detection](/projects/device-detection)
140
140
141
-
This is the most basic device detection. You will be able to detect whether the client is a desktop or a mobile client.
141
+
This is the most basic device detection. You will be able to detect whether the client is a desktop or a mobile client.
142
142
143
143
### Image Sharp (1)
144
144
145
145
All these samples require `SixLabors.ImageSharp.Web` middleware package. This middleware is an excelent tool to process your day to day image processing need.
146
146
147
-
-[Image-Sharp](/projects/image-sharp)
147
+
-[Image-Sharp](/projects/image-sharp)
148
148
149
-
This example shows how to enable image resizing functionality to your site. It's super easy and the middleware takes care of caching, etc.
149
+
This example shows how to enable image resizing functionality to your site. It's super easy and the middleware takes care of caching, etc.
0 commit comments