Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Practical samples of ASP.NET Core 2.1, 2.2, 3.1, 5.0, 6.0, 7.0 and 8.0 preview 2 projects you can use. Readme contains explanations on all projects.

License

NotificationsYou must be signed in to change notification settings

Pro-Coded-External/practical-aspnetcore

 
 

Repository files navigation

  • Samples for new features of ASP.NET Core8.0 are availablehere (42).
  • Samples for new features of ASP.NET Core7.0 are availablehere (45).

Greetings from Cairo, Egypt. You cansponsor this projecthere.

Previous versions

5.0,3.1 LTS,2.1 LTS

Sections

Section
Blazor Client Side (Web Assembly)22Components, Data Binding
Blazor Server Side15Localization
Caching5
Configurations10
CoreWCF1
Dependency Injection4
Diagnostics6
Endpoint Routing32
Email2
Elsa Workflow14
Features11
Generic Hosting9
gRPC (including grpc-Web)12
Health Check6
IHttpClientFactory4
IHostedService2
Logging4
Localization and Globalization6
Middleware14
Mini Apps2
Minimal API36Routing, Parameter Bindings, etc
Minimal Hosting23
MVC47Localization, Routing, Razor Class Library, Tag Helpers, View Component, etc
Open Telemetry3
Orchard Core4
Path String (HttpContext.Request.Path)1
Razor Pages10TempData
Request15Form, Cookies, Query String, Headers
Response3
SignalR1
Security7
Single File Application2
Static Files and File Provider10
System.Text.Json22
Syndications3
Testing1
URL Redirect/Rewrite6
Uri Helper5
Windows Service1
Web Sockets6
Web Utilities3
Orleans12
Xml1
YARP1

For Data Access samples, go to the excellentORM Cookbook. .NET team also hasa sample repository.

How to run these samples

To run these samples, simply open your command line console, go to each folder and executedotnet watch run.

Misc (6)

  • Application Environment

    This sample shows how to obtain application environment information (target framework, etc).

  • Show Connection info

    Enumerate the connection information of a HTTP request.

  • Keeping track of anonymous users

    Keep track of anonymous user in your ASP.NET Core (useful in scenario such as keeping track of shopping cart) usingReturnTrue.AspNetCore.Identity.Anonymous library.

  • Password Hasher server

    Give it a string and it will generate a secure hash for you, e.g.localhost:5000?password=mypassword.

  • Version info

    Show various version info of the framework your system is running on.

  • IApplicationLifetime

    Responds to application startup and shutdown.

    We are usingIApplicationLifetime that trigger events during application startup and shutdown.

Server-Sent Events (1)

Markdown (2)

Utils (3)

  • Status Codes

    Here we contrast between the usage ofMicrosoft.AspNetCore.Http.StatusCodes andSystem.Net.HttpStatusCode.

  • MediaTypeNames

    This class provides convenient constants for some common MIME types. It's not extensive by any means howeverMediaTypeNames.Text.Html andMediaTypeNames.Application.Json come handy.

  • MediaTypeNames - 2

    UsingFileExtensionContentTypeProvider to obtain the correct MIME type of a filename extension.

Device Detection (1)

The samples in this section rely onWangkanai.Detection library.

  • Device Detection

    This is the most basic device detection. You will be able to detect whether the client is a desktop or a mobile client.

Image Sharp (1)

All these samples requireSixLabors.ImageSharp.Web middleware package. This middleware is an excelent tool to process your day to day image processing need.

  • Image-Sharp

    This example shows how to enable image resizing functionality to your site. It's super easy and the middleware takes care of caching, etc.

Misc

About

Practical samples of ASP.NET Core 2.1, 2.2, 3.1, 5.0, 6.0, 7.0 and 8.0 preview 2 projects you can use. Readme contains explanations on all projects.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C#72.5%
  • HTML23.1%
  • Batchfile4.3%
  • Dockerfile0.1%

[8]ページ先頭

©2009-2025 Movatter.jp