JWT Security, SignalR Reconnects and Async Deadlocks
Practical reads cover token validation, SignalR retries, EF Core repositories, webhook idempotency, AI abstractions, and leak diagnosis.
Jasen's top three picks
- 1 5 JWT Mistakes That Quietly Weaken ASP.NET Core APIs
Medium
Your API returns 200 OK, the tokens “work”, and yet a few default settings can leave the door half open. Here is what to check, with code…
- 2 Handling Network Disconnections and Reconnection in SignalR Applications
C# Corner
Learn how to handle SignalR network disconnections with automatic reconnection, retry policies, connection lifecycle events, and UI state updates.
- 3 Readable Agent-Written Unit Tests: AAA and Classical Isolation
Medium
Agents write most unit tests; engineers review them. This standard defines how a test is shaped (AAA) and what a test isolates (classical…
Editor's note
I’ve curated a varied mix of API guidance, testing practices, AI development, and debugging stories. The JWT article is a useful reminder to check validation settings even when tokens appear to work. I also appreciated the event-handler leak investigation for showing how a retention problem can hide without an obvious cache.
Today's articles
5 JWT Mistakes That Quietly Weaken ASP.NET Core APIs
Medium
Your API returns 200 OK, the tokens “work”, and yet a few default settings can leave the door half open. Here is what to check, with code…
Topics: ASP.NET Core JWT Security
Read articleHandling Network Disconnections and Reconnection in SignalR Applications
C# Corner
Learn how to handle SignalR network disconnections with automatic reconnection, retry policies, connection lifecycle events, and UI state updates.
Topics: ASP.NET Core SignalR
Read articleReadable Agent-Written Unit Tests: AAA and Classical Isolation
Medium
Agents write most unit tests; engineers review them. This standard defines how a test is shaped (AAA) and what a test isolates (classical…
Topics: C# Unit Testing
Read articleOur First Dungeon Room
Medium
Building Rogue #5: Learning Software Development One Dungeon at a Time
Topics: C#
Read articleGeneric Repository in .NET with EF Core: A Practical Implementation (and When Not to Use It)
Medium
A clean, minimal generic repository on top of EF Core — plus an honest look at when it helps and when it just adds a layer.
Topics: Design Patterns EF Core
Read articleFinding a leak rooted by an event handler or a timer with an AI agent
Meziantou's blog
The previous post found a leak whose root was a static cache, which is the case everybody recognises. This one has no cache, no static collection, and nothing that looks like storage. It leaks because...
Read articleBuilding a POS API Integration Layer in ASP.NET Core: Webhooks, Retries and Idempotency Keys
C# Corner
Build a reliable POS API integration layer in ASP.NET Core with idempotency keys, safe retry policies, HMAC-verified webhooks, and inbox-based event processing.
Topics: ASP.NET Core Security Web API
Read articleBuilding AI features in .NET with Microsoft.Extensions.AI
elmah.io Blog - .NET Technical tutorials/guides and new features
Microsoft.Extensions.AI gives .NET one set of abstractions for talking to AI providers. This post builds a console chatbot with IChatClient, streaming responses and conversation history. It then adds ...
Read articleFinding an async deadlock caused by a SynchronizationContext with an AI agent
Meziantou's blog
The previous post found a deadlock by asking which thread owned which monitor. This one has the same symptom, a process that hangs and uses no CPU, and none of that evidence: no monitor is held, no th...
Read article