Home Archive AI agents, auth, caching, and clean code – .NET News Daily Issue #426 (Apr 3, 2026)

Editor's note

I pulled together a mixed issue again: AI agents, authentication, caching, architecture, and a bit of clean-code philosophy. The distributed locks piece and the duplicate-orders war story stood out to me because they get past theory and into the messy parts teams actually ship. I also liked the Blazor cross-platform post for showing how far one codebase can go without resorting to a forest of #if directives.

AI agents, auth, caching, and clean code

Enjoying the newsletter? Your feedback helps us grow and reach more developers.

Share your testimonial →

Today's Articles

Clean C# Code: Best Practices, Smart Patterns & Real-World Examples in .NET Core

https://medium.com/@Rajdip27/clean-c-code-best-practices-smart-patterns-real-world-examples-in-net-core-735167b6367b?source=rss------csharp-5

Writing code that works is just the beginning. Writing code that lasts — that your team can read, test, extend, and debug at 2 AM — is the…

Article preview

Building AI Agents with .NET & AutoGen in 2026

https://medium.com/@farzadbagheri33/building-ai-agents-with-net-autogen-in-2026-5f61118747da?source=rss------csharp-5

“In 2024 we talked about AI assistants. In 2025 we shipped AI copilots. In 2026, the teams winning are shipping autonomous AI agents that…

Article preview

ASP.NET Core + JWT + OAuth 2.0 — Authentication Done Right in 2026

https://medium.com/@123ajaybisht/asp-net-core-jwt-oauth-2-0-authentication-done-right-in-2026-59ba0be1397f?source=rss------dotnet-5

Most .NET auth tutorials show you what works in a demo. This one shows you what survives production — with token refresh, role-based…

Article preview

Generative AI for Beginners in .NET 10: From Curiosity to Real Applications

https://blog.gopenai.com/generative-ai-for-beginners-in-net-10-from-curiosity-to-real-applications-ac5af44e81d5?source=rss------csharp-5

A few years ago, learning AI meant diving into complex theory, research papers, and tools that often felt disconnected from real-world… Continue reading on GoPenAI »

Article preview

I Added Resilience to My .NET App. It Started Sending Duplicate Orders.

https://medium.com/@iamrks/i-added-resilience-to-my-net-app-it-started-sending-duplicate-orders-2af09abffaea?source=rss------dotnet-5

A production war story that every .NET developer needs to read — from junior to architect.

Article preview

Implementing Distributed Locks in .NET

https://medium.com/@heartbeats.zero/implementing-distributed-locks-in-net-f4c16135ace8?source=rss------dotnet-5

A practical approach to coordinating work across multiple instances — without adding unnecessary infrastructure

Article preview

Event Sourcing in .NET 9: A Real-World Banking Example

https://medium.com/@EdwardCurtin/event-sourcing-in-net-9-a-real-world-banking-example-1aa0513e3524?source=rss------dotnet-5

Summary

Article preview

Clean Code Rules That Don’t Fit Modern C#

https://medium.com/@wbayrakvlad/clean-code-rules-that-dont-fit-modern-c-c290644ddc61?source=rss------dotnet-5

Hello! Today we’re going to talk about something a bit controversial — Clean Code.

Article preview

How I use the same Blazor code for WASM, Windows, Linux, macOS, iOS, Android without a single #if

https://medium.com/@jinjinov/how-i-use-the-same-blazor-code-for-wasm-windows-linux-macos-ios-android-without-a-single-if-0432962ac4c2?source=rss------dotnet-5

OpenHabitTracker is a free, open source app for taking Markdown notes, planning tasks, and tracking habits. It runs on Windows, Linux…

Article preview

Interface vs Abstract Class in C# — What They Really Mean [Part 3]

https://medium.com/@nikolaajdukovic/interface-vs-abstract-class-in-c-what-they-really-mean-part-3-67fe3e0f018c?source=rss------csharp-5

Part 3: ⚽ Sports Betting Platforms

Article preview

How to set up MCP in C# .NET — step-by-step guide

https://medium.com/@denmaklucky/how-to-set-up-mcp-in-c-net-step-by-step-guide-18884e8d06b4?source=rss------csharp-5

Nowadays, it is significantly useful to allow AI agents access to your data. In fact, this is exactly what makes AI agents so powerful. If…

Article preview

In-memory Cache vs Distributed Cache: When to Choose Redis?

https://www.c-sharpcorner.com/article/in-memory-cache-vs-distributed-cache-when-to-choose-redis/

Discover the best caching strategy for your app! Compare in-memory vs. distributed caches like Redis. Learn when Redis is essential for scalable, high-performance applications.

Article preview

What is Dependency Injection in ASP.NET Core?

https://www.c-sharpcorner.com/article/what-is-dependency-injection-in-asp-net-core/

Unlock the power of Dependency Injection (DI) in ASP.NET Core! Learn how DI promotes loose coupling, improves testability, and builds scalable applications. Master DI today!

Article preview

How to Build a Chatbot using OpenAI API and .NET

https://www.c-sharpcorner.com/article/how-to-build-a-chatbot-using-openai-api-and-net/

Learn how to build a chatbot using OpenAI API and .NET! This step-by-step guide covers everything from setup to advanced features, perfect for developers. Create intelligent, conversational apps with ...

Article preview

How to Deploy a .NET Application on AWS EC2 Step by Step

https://www.c-sharpcorner.com/article/how-to-deploy-a-net-application-on-aws-ec2-step-by-step/

Deploy .NET apps on AWS EC2! This guide simplifies the process, from instance setup to Nginx configuration and HTTPS. Perfect for scalable web applications.

Article preview

How to Implement JWT Authentication in ASP.NET Core Step by Step

https://www.c-sharpcorner.com/article/how-to-implement-jwt-authentication-in-asp-net-core-step-by-step/

Secure your ASP.NET Core APIs with JWT! This step-by-step guide covers implementation, best practices, and common pitfalls for robust authentication. Build secure, scalable web apps.

Article preview

Complete Guide to HTML Helpers in ASP.NET MVC

https://www.c-sharpcorner.com/blogs/complete-guide-to-html-helpers-in-asp-net-mvc

Master ASP.NET MVC development with HTML Helpers! This guide covers all essential helpers, from form creation to validation, with clear examples and best practices. Simplify your Razor views!

Article preview

Jasen's take on today's picks

Clean C# Code: Best Practices, Smart Patterns & Real-World Examples in .NET Core

A solid reminder that “works on my machine” is not a production strategy.

Building AI Agents with .NET & AutoGen in 2026

AI agents, MCP, and chatbot guidance show how quickly the .NET AI stack is maturing.

ASP.NET Core + JWT + OAuth 2.0 — Authentication Done Right in 2026

JWT, OAuth, and DI are evergreen topics when teams need secure, maintainable APIs.

Generative AI for Beginners in .NET 10: From Curiosity to Real Applications

The distributed-locks article and duplicate-orders story are the kind of operational lessons worth sharing.

I Added Resilience to My .NET App. It Started Sending Duplicate Orders.

Blazor without platform-specific conditionals is the sort of practical engineering win I like to see.

Related issues

📬 Get daily .NET content delivered to your inbox