Skip to content

refactor(examples): S13 PR 4 — .NET on EF Core, HealthChecks and BackgroundService - #76

Merged
patterncatalyst merged 26 commits into
mainfrom
refactor/s13-dotnet
Oct 12, 2026
Merged

patterncatalyst merged 26 commits into
mainfrom
refactor/s13-dotnet

Conversation

@patterncatalyst

Copy link
Copy Markdown
Owner

S13 PR 4 of 5 (plan: _plans/s13-idiomatic-plan.md, step 5).

  • The .NET examples move from hand-built Npgsql commands to EF Core, with db/init still owning the schema (no migrations, no EnsureCreated). 04's outbox is written in a single SaveChanges, and 17's saga locks its row with FromSql ... FOR UPDATE.
  • Hand-written MapGet health endpoints are replaced by ASP.NET Core HealthChecks on /healthz and /readyz.
  • Console consumers and the 25 flusher become BackgroundServices. 21 drains through IHostedLifecycleService instead of PosixSignalRegistration.
  • Configuration moves to IConfiguration/Options (D5), new HttpClient to typed HttpClients, and 18's errors to AddProblemDetails / TypedResults.Problem.
  • 25 uses HybridCache for read-through only; the other strategies keep explicit Redis clients (D4).
  • 19's CLI runs on a plain host without Kestrel. 11 and 16 enable nullable reference types.
  • The .NET site tabs, READMEs and deck (DotNet.fix6.json) follow the new code.

The rebase onto main hit one conflict in _docs/25-appendix-l-caching.md (read-through prose). It now keeps Quarkus's Cache.get from PR 2 and names .NET HybridCache's GetOrCreateAsync.

Verification: scripts/verify-matrix.sh dotnet passed 19/19. validate_site, voice-scan and deck_text --check report clean.

@patterncatalyst
patterncatalyst merged commit 8c2069e into main Oct 12, 2026
46 checks passed
@patterncatalyst
patterncatalyst deleted the refactor/s13-dotnet branch October 12, 2026 23:31
patterncatalyst added a commit that referenced this pull request Oct 23, 2026
…groundService (#76)

* refactor(demo-01): .NET on EF Core, HealthChecks and BackgroundService

* refactor(demo-02): .NET on EF Core and HealthChecks

* refactor(demo-03): .NET on EF Core, HealthChecks and a typed HttpClient

* refactor(demo-04): .NET on EF Core with a single-SaveChanges outbox

* refactor(demo-05): .NET on EF Core, HealthChecks and BackgroundService consumers

* refactor(demo-21): .NET drain on IHostedLifecycleService and HealthChecks

* refactor(demo-06): .NET on EF Core, HealthChecks and a BackgroundService stream processor

* refactor(demo-02): .NET inventory reads INITIAL_STOCK from IConfiguration

* refactor(demo-11): .NET on EF Core, HealthChecks and a BackgroundService consumer

* refactor(demo-12): .NET health checks and configuration

* refactor(demo-16): .NET health checks and configuration

* refactor(demo-17): .NET saga on EF Core with FromSql FOR UPDATE and HealthChecks

* refactor(demo-18): .NET ProblemDetails via AddProblemDetails and TypedResults.Problem

* refactor(demo-19): .NET hexagonal adapters on EF Core; CLI on a plain host

* refactor(demo-22): .NET health checks and configuration

* refactor(demo-24): .NET typed HttpClients, health checks and configuration

* refactor(demo-25): .NET on EF Core, HybridCache read-through and BackgroundService flusher

* refactor(demo-26): .NET typed backend client, health checks and configuration

* refactor(demo-27): .NET health checks and configuration

* refactor(demo-30): .NET dashboard on EF Core and HealthChecks

* chore(demo-11,16): enable nullable reference types in the .NET projects

* docs(demo-01,04,05,17,19,21,25,30): .NET READMEs follow the EF Core, HealthChecks and BackgroundService code

* docs(site): .NET codetabs follow the EF Core/HealthChecks examples (S13)

* refactor(demo-19): .NET use case and publisher on primary constructors

* docs(deck): .NET deck follows the idiomatic examples (S13)

* docs(plan): S13 PR 4 matrix green
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant