LevelUp.Hosting.Strategos
0.5.0
dotnet add package LevelUp.Hosting.Strategos --version 0.5.0
NuGet\Install-Package LevelUp.Hosting.Strategos -Version 0.5.0
<PackageReference Include="LevelUp.Hosting.Strategos" Version="0.5.0" />
<PackageVersion Include="LevelUp.Hosting.Strategos" Version="0.5.0" />
<PackageReference Include="LevelUp.Hosting.Strategos" />
paket add LevelUp.Hosting.Strategos --version 0.5.0
#r "nuget: LevelUp.Hosting.Strategos, 0.5.0"
#:package LevelUp.Hosting.Strategos@0.5.0
#addin nuget:?package=LevelUp.Hosting.Strategos&version=0.5.0
#tool nuget:?package=LevelUp.Hosting.Strategos&version=0.5.0
LevelUp.Hosting.Strategos
AppHost-only helper for provisioning the Strategos operational data fabric
(ODF) on the lvlup-sw paved road. Referenced only by Aspire AppHost projects —
it depends on Aspire.Hosting (and Aspire.Hosting.PostgreSQL) and is a sibling
of LevelUp.Hosting. A packaged build-time guard fails the build if it is
referenced from a non-AppHost project (IsAspireHost != true).
Usage
var builder = DistributedApplication.CreateBuilder(args);
var odf = builder.AddStrategosOdf("strategos-odf"); // pgvector Postgres + vector extension
builder.AddProject<Projects.Api>("api")
.WithReference(odf);
What it does
AddStrategosOdf(name)adds a Postgres server resource pinned to thepgvector/pgvector:pg17image and, in run mode only, subscribes aResourceReadyEventhook that opens the resource's connection string with Npgsql and runsCREATE EXTENSION IF NOT EXISTS vector;. The hook is gated onExecutionContext.IsPublishMode(skipped during publish — the migration is a run-time concern), is idempotent across a re-fired event (IF NOT EXISTS), and catches connection failures so a transient outage surfaces through Postgres's built-in health check rather than crashing the AppHost on an unobserved task. The returned resource already carries Aspire's built-in Postgres health check.
Ownership boundary
LevelUp.Hosting.* is AppHost-only and depends on Aspire.Hosting;
LevelUp.ServiceDefaults.* is service-side and never depends on Aspire.Hosting.
The two families are complementary and never merged — enforced by
scripts/verify-package-boundaries.sh (CI) and the packaged IsAspireHost guard.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Aspire.Hosting (>= 13.4.6)
- Aspire.Hosting.PostgreSQL (>= 13.4.6)
- Npgsql (>= 10.0.3)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.17.0)
- OpenTelemetry.Extensions.Hosting (>= 1.17.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.5.0 | 115 | 8/29/2026 |
| 0.4.0 | 179 | 7/7/2026 |
| 0.4.0-preview.1 | 78 | 6/26/2026 |
| 0.3.5 | 131 | 6/26/2026 |
| 0.3.4 | 131 | 6/24/2026 |
| 0.3.3 | 129 | 6/23/2026 |
| 0.3.2 | 144 | 6/23/2026 |
| 0.3.1 | 124 | 6/22/2026 |
| 0.3.0 | 1,340 | 6/21/2026 |
| 0.3.0-preview.1 | 84 | 6/21/2026 |