aspnet-core

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#44983
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill aspnet-core

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

ASP.NET Core

Cross-platform, high-performance framework for building modern web apps.

When to Use

  • High-performance APIs (one of the fastest benchmarks)
  • Enterprise applications
  • Microservices
  • Real-time apps (SignalR)

Quick Start

var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();

app.MapGet("/", () => "Hello World!");

app.Run();

Core Concepts

Middleware Pipeline

Request processing pipeline composed of delegates.

Dependency Injection

Built-in DI container, a core citizen of the framework.

Kestrel

Cross-platform web server for ASP.NET Core.

Best Practices

Do:

  • Use the built-in DI
  • Use asynchronous controllers (async Task<IActionResult>)
  • Use Environment Variables for config settings

Don’t:

  • Block asynchronous code (.Result or .Wait())
  • Store large objects in Session state

References