# aspnet/home architecture

> Architecture diagram of the GitHub repository aspnet/home, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/aspnet/home
- Repository: https://github.com/aspnet/home

## Overview

ASP.NET Core is a modular, cross-platform framework for building web and internet-connected applications. A representative request workflow begins with an HTTP server creating request context, then endpoint routing and filters invoke application code and produce a response. The repository also contains major capabilities for MVC/Razor, identity and authentication, data protection, Blazor components and browser interop, SignalR, caching, and hosting integrations. The supplied excerpts and source index establish only selected internal links; other subsystem connections are omitted rather than inferred.

Main entry points: [`src/Http/Http.Abstractions/src/HttpContext.cs`](https://github.com/aspnet/home/blob/main/src/Http/Http.Abstractions/src/HttpContext.cs) (Request context), [`src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs`](https://github.com/aspnet/home/blob/main/src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs) (Endpoint filters), [`src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs`](https://github.com/aspnet/home/blob/main/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs) (Protected browser storage), [`src/Mvc/Mvc.Core/src/ControllerBase.cs`](https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.Core/src/ControllerBase.cs) (MVC actions)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_http["HTTP Request Runtime"]
  node_httpcontext["Request context<br/>[HttpContext.cs]"]
  node_filters["Endpoint filters"]
  node_httpsys["HTTP.sys server<br/>[Response.cs]"]
  node_kestrel["Kestrel server<br/>[KnownHeaders.cs]"]
  node_routing["Routing"]
end

subgraph group_web["Web Application Features"]
  node_mvc["MVC actions<br/>[ControllerBase.cs]"]
  node_razor["Razor views<br/>[RazorViewEngine.cs]"]
  node_viewcomposition["View engine composition"]
  node_openapi["OpenAPI documents"]
end

subgraph group_identity["Identity And Security"]
  node_identitymanager["User management<br/>[UserManager.cs]"]
  node_identityerrors["Identity results<br/>[IdentityResult.cs]"]
  node_authentication["Authentication handlers"]
  node_dataprotection[("Data protection keys<br/>[Key.cs]")]
  node_antiforgery["Antiforgery tokens"]
  node_certificate["Development certificates"]
end

subgraph group_components["Blazor Components"]
  node_componentcore["Component runtime<br/>[ComponentBase.cs]"]
  node_queryparams["Query parameters"]
  node_browserstorage["Protected browser storage"]
  node_tempdata[("Session TempData")]
  node_clientdefaults["Blazor client defaults<br/>[Extensions.cs]"]
end

subgraph group_realtime["Realtime And Caching"]
  node_signalr["SignalR hubs"]
  node_redisrealtime["Redis hub scaleout"]
  node_sqlcache[("SQL cache<br/>[SqlServerCache.cs]")]
  node_rediscache[("Redis cache<br/>[RedisCache.cs]")]
end

node_actor(("Application developer"))

node_actor -->|"builds app"| node_mvc
node_httpsys -.->|"provides request state"| node_httpcontext
node_kestrel -.->|"serves requests"| node_httpcontext
node_filters -->|"invokes delegate"| node_httpcontext
node_filters -->|"wraps endpoint"| node_routing
node_mvc -.->|"renders views"| node_razor
node_viewcomposition -.->|"tries view engines"| node_razor
node_identitymanager -->|"uses error descriptors"| node_identityerrors
node_browserstorage -->|"protects browser data"| node_dataprotection
node_browserstorage -.->|"uses browser storage"| node_actor
node_tempdata -->|"reads session"| node_httpcontext
node_componentcore -.->|"accepts query values"| node_queryparams
node_signalr -->|"supports scaleout"| node_redisrealtime
node_certificate -->|"creates development certs"| node_actor
node_clientdefaults -->|"configures client telemetry"| node_actor

click node_httpcontext "https://github.com/aspnet/home/blob/main/src/Http/Http.Abstractions/src/HttpContext.cs"
click node_filters "https://github.com/aspnet/home/blob/main/src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs"
click node_httpsys "https://github.com/aspnet/home/blob/main/src/Servers/HttpSys/src/RequestProcessing/Response.cs"
click node_kestrel "https://github.com/aspnet/home/blob/main/src/Servers/Kestrel/shared/KnownHeaders.cs"
click node_routing "https://github.com/aspnet/home/tree/main/src/Http/Routing"
click node_mvc "https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.Core/src/ControllerBase.cs"
click node_razor "https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs"
click node_viewcomposition "https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs"
click node_openapi "https://github.com/aspnet/home/blob/main/src/OpenApi/src/Services/OpenApiDocumentService.cs"
click node_identitymanager "https://github.com/aspnet/home/blob/main/src/Identity/Extensions.Core/src/UserManager.cs"
click node_identityerrors "https://github.com/aspnet/home/blob/main/src/Identity/Extensions.Core/src/IdentityResult.cs"
click node_authentication "https://github.com/aspnet/home/blob/main/src/Security/Authentication/Core/src/RemoteAuthenticationHandler.cs"
click node_dataprotection "https://github.com/aspnet/home/blob/main/src/DataProtection/DataProtection/src/KeyManagement/Key.cs"
click node_antiforgery "https://github.com/aspnet/home/blob/main/src/Antiforgery/src/Internal/DefaultAntiforgery.cs"
click node_componentcore "https://github.com/aspnet/home/blob/main/src/Components/Components/src/ComponentBase.cs"
click node_queryparams "https://github.com/aspnet/home/blob/main/src/Components/Components/src/SupplyParameterFromQueryProviderServiceCollectionExtensions.cs"
click node_browserstorage "https://github.com/aspnet/home/blob/main/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs"
click node_tempdata "https://github.com/aspnet/home/blob/main/src/Components/Endpoints/src/TempData/SessionStorageTempDataProvider.cs"
click node_signalr "https://github.com/aspnet/home/blob/main/src/SignalR/server/Core/src/HubConnectionContext.cs"
click node_redisrealtime "https://github.com/aspnet/home/blob/main/src/SignalR/server/StackExchangeRedis/src/RedisHubLifetimeManager.cs"
click node_sqlcache "https://github.com/aspnet/home/blob/main/src/Caching/SqlServer/src/SqlServerCache.cs"
click node_rediscache "https://github.com/aspnet/home/blob/main/src/Caching/StackExchangeRedis/src/RedisCache.cs"
click node_certificate "https://github.com/aspnet/home/blob/main/src/Shared/CertificateGeneration/CertificateManager.cs"
click node_clientdefaults "https://github.com/aspnet/home/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/Extensions.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_httpcontext,node_filters,node_httpsys,node_kestrel,node_routing toneBlue
class node_mvc,node_razor,node_viewcomposition,node_openapi toneAmber
class node_identitymanager,node_identityerrors,node_authentication,node_dataprotection,node_antiforgery,node_certificate toneMint
class node_componentcore,node_queryparams,node_browserstorage,node_tempdata,node_clientdefaults toneRose
class node_signalr,node_redisrealtime,node_sqlcache,node_rediscache,node_actor toneIndigo
```

## Components

### HTTP Request Runtime

- [Request context](https://github.com/aspnet/home/blob/main/src/Http/Http.Abstractions/src/HttpContext.cs): `src/Http/Http.Abstractions/src/HttpContext.cs`
- [Endpoint filters](https://github.com/aspnet/home/blob/main/src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs): `src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs`
- [HTTP.sys server](https://github.com/aspnet/home/blob/main/src/Servers/HttpSys/src/RequestProcessing/Response.cs): `src/Servers/HttpSys/src/RequestProcessing/Response.cs`
- [Kestrel server](https://github.com/aspnet/home/blob/main/src/Servers/Kestrel/shared/KnownHeaders.cs): `src/Servers/Kestrel/shared/KnownHeaders.cs`
- [Routing](https://github.com/aspnet/home/tree/main/src/Http/Routing): `src/Http/Routing`

### Web Application Features

- [MVC actions](https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.Core/src/ControllerBase.cs): `src/Mvc/Mvc.Core/src/ControllerBase.cs`
- [Razor views](https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.Razor/src/RazorViewEngine.cs): `src/Mvc/Mvc.Razor/src/RazorViewEngine.cs`
- [View engine composition](https://github.com/aspnet/home/blob/main/src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs): `src/Mvc/Mvc.ViewFeatures/src/ViewEngines/CompositeViewEngine.cs`
- [OpenAPI documents](https://github.com/aspnet/home/blob/main/src/OpenApi/src/Services/OpenApiDocumentService.cs): `src/OpenApi/src/Services/OpenApiDocumentService.cs`

### Identity And Security

- [User management](https://github.com/aspnet/home/blob/main/src/Identity/Extensions.Core/src/UserManager.cs): `src/Identity/Extensions.Core/src/UserManager.cs`
- [Identity results](https://github.com/aspnet/home/blob/main/src/Identity/Extensions.Core/src/IdentityResult.cs): `src/Identity/Extensions.Core/src/IdentityResult.cs`
- [Authentication handlers](https://github.com/aspnet/home/blob/main/src/Security/Authentication/Core/src/RemoteAuthenticationHandler.cs): `src/Security/Authentication/Core/src/RemoteAuthenticationHandler.cs`
- [Data protection keys](https://github.com/aspnet/home/blob/main/src/DataProtection/DataProtection/src/KeyManagement/Key.cs): `src/DataProtection/DataProtection/src/KeyManagement/Key.cs`
- [Antiforgery tokens](https://github.com/aspnet/home/blob/main/src/Antiforgery/src/Internal/DefaultAntiforgery.cs): `src/Antiforgery/src/Internal/DefaultAntiforgery.cs`
- [Development certificates](https://github.com/aspnet/home/blob/main/src/Shared/CertificateGeneration/CertificateManager.cs): `src/Shared/CertificateGeneration/CertificateManager.cs`

### Blazor Components

- [Component runtime](https://github.com/aspnet/home/blob/main/src/Components/Components/src/ComponentBase.cs): `src/Components/Components/src/ComponentBase.cs`
- [Query parameters](https://github.com/aspnet/home/blob/main/src/Components/Components/src/SupplyParameterFromQueryProviderServiceCollectionExtensions.cs): `src/Components/Components/src/SupplyParameterFromQueryProviderServiceCollectionExtensions.cs`
- [Protected browser storage](https://github.com/aspnet/home/blob/main/src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs): `src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs`
- [Session TempData](https://github.com/aspnet/home/blob/main/src/Components/Endpoints/src/TempData/SessionStorageTempDataProvider.cs): `src/Components/Endpoints/src/TempData/SessionStorageTempDataProvider.cs`
- [Blazor client defaults](https://github.com/aspnet/home/blob/main/src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/Extensions.cs): `src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/Extensions.cs`

### Realtime And Caching

- [SignalR hubs](https://github.com/aspnet/home/blob/main/src/SignalR/server/Core/src/HubConnectionContext.cs): `src/SignalR/server/Core/src/HubConnectionContext.cs`
- [Redis hub scaleout](https://github.com/aspnet/home/blob/main/src/SignalR/server/StackExchangeRedis/src/RedisHubLifetimeManager.cs): `src/SignalR/server/StackExchangeRedis/src/RedisHubLifetimeManager.cs`
- [SQL cache](https://github.com/aspnet/home/blob/main/src/Caching/SqlServer/src/SqlServerCache.cs): `src/Caching/SqlServer/src/SqlServerCache.cs`
- [Redis cache](https://github.com/aspnet/home/blob/main/src/Caching/StackExchangeRedis/src/RedisCache.cs): `src/Caching/StackExchangeRedis/src/RedisCache.cs`

### Other components

- **Application developer**

## Connections

- Application developer → MVC actions: builds app (evidence: `README.md`)
- HTTP.sys server → Request context: provides request state (evidence: `src/Http/Http.Abstractions/src/HttpContext.cs`)
- Kestrel server → Request context: serves requests
- Endpoint filters → Request context: invokes delegate (evidence: `src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs`)
- Endpoint filters → Routing: wraps endpoint (evidence: `src/Http/Routing/src/RequestDelegateFilterPipelineBuilder.cs`)
- MVC actions → Razor views: renders views
- View engine composition → Razor views: tries view engines
- User management → Identity results: uses error descriptors (evidence: `src/Identity/Extensions.Core/src/UserManager.cs`)
- Protected browser storage → Data protection keys: protects browser data (evidence: `src/Components/Server/src/ProtectedBrowserStorage/ProtectedSessionStorage.cs`)
- Protected browser storage → Application developer: uses browser storage
- Session TempData → Request context: reads session (evidence: `src/Components/Endpoints/src/TempData/SessionStorageTempDataProvider.cs`)
- Component runtime → Query parameters: accepts query values
- SignalR hubs → Redis hub scaleout: supports scaleout (evidence: `src/SignalR/server/StackExchangeRedis/src/RedisHubLifetimeManager.cs`)
- Development certificates → Application developer: creates development certs (evidence: `src/Shared/CertificateGeneration/CertificateManager.cs`)
- Blazor client defaults → Application developer: configures client telemetry (evidence: `src/ProjectTemplates/Web.ProjectTemplates/content/BlazorWasmServiceDefaults-CSharp/Extensions.cs`)
