Beyond Boundaries Is Being Rebuilt for .NET 11 and C# 15

Beyond Boundaries Is Being Rebuilt for .NET 11 and C# 15

.NET 11 and C# 15 came out in November. All the runtimes that my book covers are now End of Life (EOL): .NET 9 was EOL in May, .NET 8 in November 10. Beyond Boundaries: Networking Programming with C# and .NET is getting its most significant update to date.

The book has gone from 17 to 19 chapters (hence over 200 pages of new material). I’ve checked it all against the final documentation. That was key, really, as there were three things that I’d written based on release candidates which were in fact wrong in the final release, and I wanted to spot those for myself before you did.

Two New Chapters

Chapter 7: Network Security and Modern Authentication

Previously, security was scattered through the various protocol chapters. There was a lot of demand for a single section on security, and so now everything is in one place.

  • TLS 1.3 configuration and observability. .NET 11 finally tells you why a handshake failed (via ITlsHandshakeFeature.Exception), and UseTlsClientHelloListener allows you to inspect the ClientHello prior to negotiation.
  • You can use post-quantum crypto today. My initial draft had the incorrect statement that ML-KEM wasn’t in the base class library, it actually was (since .NET 10). The revised section includes a fully working hybrid key exchange using ML-KEM and the new X25519DiffieHellman class and makes it very clear what a teaching sample will omit.
  • Passkeys and WebAuthn. Complete registration and sign-in flows, plus the AAGUID-based display names that .NET 11 will infer for you.
  • OAuth 2.0 and OpenID Connect (authorization code with PKCE, JWT bearer and token refresh).
  • API security patterns: API keys, HMAC request signing, rate limiting, security headers and CSRF protection (now on by default).
  • Zero Trust. One authorization attribute which now works precisely the same on REST endpoints as it does on SignalR hubs.

Chapter 19: Building Cloud-Native Applications with Aspire

Note the new name. The product no longer has “.NET” in it, has retired its SDK workload and now has its own CLI. My draft previously had “dotnet workload install aspire” in it, that’s now been removed.

  • Orchestrate from Aspire New to Aspire Run via the AppHost.
  • OpenTelemetry with no extra package required at all. ASP.NET Core 11 emits semantic-convention spans natively.
  • Health checks, integrations and testing against real dependencies all via the DistributedApplicationTestingBuilder.
  • Deploy with Aspire Publish and Aspire Deploy to Docker Compose, Kubernetes and Azure Container Apps.

Eight Updated Chapters

Chapter 4: Async programming has changed the most. With the .NET 11 Runtime Async, the async state machines move from the compiler to the runtime. In my sample, the live stack went from 13 frames down to 5. It’s opt-in per project, and the BCL already uses it.

Chapter 6 brings the Polly v8 coverage to a close with some hedging, the rate limiter strategy, pipeline composition and Microsoft.Extensions.Http.Resilience.

Chapter 8 is all about streaming JSON over PipeWriter, JSON Lines, Zstandard and has a section on C# 15 unions and closed hierarchies. In summary: use closed hierarchies for messages that are going over the wire and use unions for outcomes that stay in process.

Chapter 9: Native AOT, observability, zero-copy stream types and the Kestrel changes that make a server cheaper to run under hostile traffic.

Chapter 10: HttpClientFactory, rate limiting middleware, Minimal APIs with [ShortCircuit] and async validation, typed DNS queries and OpenAPI 3.2.

Chapter 14: gRPC JSON transcoding.

Chapter 17: SignalR authentication refresh without a reconnect on the .NET and TypeScript clients and client cancellation of hub calls.

Chapter 18 now has HTTP/3 stream prioritization via QuicStream.Priority. I’m also changing the chapter title. “Looking to the future with QUIC” was appropriate for 2024, but QUIC is now in production.

C# 15 Throughout

Every sample moves to net11.0 and picks up C# 15 where it reads better: collection expression arguments, labeled break and continue in packet loops, and unions where a method has more than one honest outcome.

The writing’s almost done. Next up is to build each sample on the release SDK, clear up a few bits that were a bit unclear in the docs and deal with the layout. The updated edition will be on LeanPub, and if you already purchased the book (LeanPub), you’ll get the update automatically. The accompanying code on GitHub will be moving to net11.0 as I go through and update each chapter.

What I Left Out

I deliberately left out two things. The MCP server template in the .NET 11 SDK is AI tooling, and that’s not the focus of this book (it’s all about networking). Blazor specific content is all about the UI, so that’s not in there. The SignalR bits are relevant to any client, so they stay.

Tell Me What Is Missing

If you’d like a topic covered or spot a bug in the current edition then please email me at cwoodruff@live.com or raise an issue on the GitHub repo.

Work with me

Need this kind of thinking on your team?

Fractional architecture, a decision brief, or a workshop built around the problems in these articles.

Get in touch