How vboorugadda22/aspirelab works
AspireLab is a minimal .NET Aspire-hosted web API. An operator starts the AppHost, which launches the Web API; an HTTP client can then call its /hello endpoint. The API also exposes development OpenAPI and health endpoints, and applies shared service defaults for telemetry, health checks, service discovery, and resilient HTTP clients. The sampled code shows no business domain, persistent store, or downstream service. The graph reflects the small runtime scaffold; it does not infer additional integrations or API behavior.
Main entry points: Program.cs Web API startup · Extensions.cs Service defaults · AppHost.cs Aspire AppHost
Components 11
Application hosting
- Aspire AppHost
AspireLab.AppHost/AppHost.cs
Web API
- Web API startup
AspireLab.WebApi/Program.cs - Hello endpoint
AspireLab.WebApi/Program.cs - Development OpenAPI
AspireLab.WebApi/Program.cs
Shared defaults
- Service defaults
AspireLab.ServiceDefaults/Extensions.cs - Telemetry setup
AspireLab.ServiceDefaults/Extensions.cs - Health checks
AspireLab.ServiceDefaults/Extensions.cs - HTTP defaults
AspireLab.ServiceDefaults/Extensions.cs
Other components
- Operator
- HTTP client
- OTLP collector
Connections 10
- Operator → Aspire AppHost: starts
- Aspire AppHost → Web API startup: launches
AspireLab.AppHost/AppHost.cs - HTTP client → Hello endpoint: requests
AspireLab.WebApi/Program.cs - Web API startup → Hello endpoint: maps route
AspireLab.WebApi/Program.cs - Web API startup → Development OpenAPI: maps in development
AspireLab.WebApi/Program.cs - Web API startup → Service defaults: configures
AspireLab.WebApi/Program.cs - Service defaults → Telemetry setup: configures
AspireLab.ServiceDefaults/Extensions.cs - Service defaults → Health checks: registers
AspireLab.ServiceDefaults/Extensions.cs - Service defaults → HTTP defaults: configures
AspireLab.ServiceDefaults/Extensions.cs - Telemetry setup → OTLP collector: exports when configured
AspireLab.ServiceDefaults/Extensions.cs