C#
Kestrun is PowerShell-first, but the runtime is built on ASP.NET Core and exposes a C# surface for host composition, middleware integration, and lower-level extension work.
Use the C# docs when you need to:
- host Kestrun inside an ASP.NET Core application
- apply Kestrun conventions to native ASP.NET Core endpoints
- extend middleware, OpenAPI behavior, or runtime services in compiled code
- understand the underlying types that PowerShell cmdlets wrap
API Reference
Recommended Reading
If you are starting from PowerShell and only need the higher-level scripting model, begin with the PowerShell tutorials instead.