Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.4k
Practical samples of ASP.NET Core 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
License
dodyg/practical-aspnetcore
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Greetings from Cairo, Egypt. You cansponsor this projecthere.
You can find samples on new features availabel in ASP.NET Core 10(12)here. Datastar examples (20) can be foundhere.
You can find samples on new features available in ASP.NET Core 9(3)here.
- For ATProtocol (the underlying open protocol for Bluesky) related samples, you can find themhere.
- For Hydro Framework (Razor Pages compatible), you can find themhere(8).
- Official .NET Aspire samples.
- For Data Access samples, go to the excellentORM Cookbook.
- .NET team also hasa sample repository.
To run these samples, simply open your command line console, go to each folder and executedotnet watch run.
This sample shows how to obtain application environment information (target framework, etc).
Enumerate the connection information of a HTTP request.
Give it a string and it will generate a secure hash for you, e.g.
localhost:5000?password=mypassword.Show various version info of the framework your system is running on.
Responds to application startup and shutdown.
We are using
IApplicationLifetimethat trigger events during application startup and shutdown.Use
MapShortCircuitor.ShortCircuit()to efficiently respond to a request without going through a middleware pipeline run.
This server will send a 'hello world' greeting forever.
Serve markdown file as html file. You will see how you can create useful app using a few basic facilities in aspnetcore.
We take
"Markdig"as dependency.Markdown server - implemented as middleware component
Serve markdown file as html file. It has the same exact functionality asMarkdown server but implemented using middleware component.
We take
"Markdig"as dependency.
Here we contrast between the usage of
Microsoft.AspNetCore.Http.StatusCodesandSystem.Net.HttpStatusCode.This class provides convenient constants for some common MIME types. It's not extensive by any means however
MediaTypeNames.Text.HtmlandMediaTypeNames.Application.Jsoncome handy.Using
FileExtensionContentTypeProviderto obtain the correct MIME type of a filename extension.
The samples in this section rely onWangkanai.Detection library.
This is the most basic device detection. You will be able to detect whether the client is a desktop or a mobile client.
All these samples requireSixLabors.ImageSharp.Web middleware package. This middleware is an excelent tool to process your day to day image processing need.
This example shows how to enable image resizing functionality to your site. It's super easy and the middleware takes care of caching, etc.
About
Practical samples of ASP.NET Core 10, 9, 8.0, 7.0, 6.0, 5.0, 3.1, 2.2, and 2.1,projects you can use. Readme contains explanations on all projects.
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.