Recent posts tagged asp

a95yman • May 1 • in Articles • 5 min read
The Refresh Token Problem Nobody Talks About Most developers think JWT authentication is straightforward. You issue a token. You validate it. You move on. It works perfectly in local development. Clean. Predictable. Simple. Until you try to buil...
post-cover-16356
  • dotnet
  • webdev
  • best-practices
  • asp
Spyros • Apr 7 • in Articles • 6 min read
The Rule Pattern in C#, and Why It Works So Well with the Result Pattern Business rules rarely stay in one place. A small validation starts in a command handler. Another check appears in a service. A third gets added somewhere in the domain. A few...
  • rule
  • design-patterns
  • asp
  • net
Spyros • Jan 30 • in Articles • 3 min read
ASP.NET Core already gives you solid logging out of the box, and if you want richer sinks and structured logs, Serilog is a common choice. But sometimes you cannot use a ready made sink, because the company already has a legacy logging table with a...
  • asp
  • net
  • core
  • c#
Spyros • Jan 7 • in Articles • 2 min read
Carter in a CQRS API, advantages and alternatives. In this project I wanted the API layer to stay small and structured. I like minimal APIs, but I don’t like having 200 endpoints inside Program.cs. That’s why I used Carter, it keeps the minimal API...
  • c#
  • asp
  • designpatterns
Spyros • Dec 30, 2025 • in Articles • 3 min read
The tech stack I used and why updated, with Repository and Unit of Work This project is small, but I wanted it to feel like a real API you can extend. The repository is here: https://github.com/stevsharp/ChainOfResponsibilityWithMediatR Carter f...
  • c#
  • designpatterns
  • asp
Spyros • Nov 28, 2025 • in Tutorials • 5 min read
1. Introduction Most .NET apps need some kind of background work. Sending emails, generating reports, cleaning data, all of these are better when they run automatically on a schedule, instead of being triggered by users. You do not always need a h...
  • c#
  • core
  • asp
Tom Smithverified • 17 hours • in Articles • 9 min read
Security dominated this week, but not in the usual way. Two active campaigns turned GitHub configuration files into attack surfaces. Researchers demonstrated that the built-in browsers inside AI coding tools can read your SSH keys. And at Oracle AI ...
post-cover-33104
  • agenticai
  • devsecops
  • github
  • localai
hessam • Nov 22, 2025 • in Articles • 1 min read
Every developer eventually inherits a legacy .NET project the kind where every method talks to everything, and a single change breaks three other features. We had one of those too. And instead of rewriting from scratch, we decided to refactor and e...
post-cover-7633
  • dotnet
  • c#
  • net
  • asp
Spyros • Nov 20, 2025 • in Tutorials • 5 min read
Tutorial: Building a .NET 9 Console App with Hangfire and Channels Overview In this tutorial, you will build a .NET 8 console application that: Polls data from an API, or simulates it Uses System.Threading.Channels for producer consumer messagi...
  • c#
  • asp
  • net
  • core
Spyros • Nov 14, 2025 • in Articles • 4 min read
Decorator pattern, in short The decorator pattern is a structural design pattern that lets you add behavior to an object at runtime by wrapping it with another object that has the same interface. The wrapper forwards calls to the inner object, then ...
  • c#
  • core
  • designpatterns
  • asp
Spyros • Nov 4, 2025 • in Articles • 3 min read
The problem we’re solving Stuff goes wrong: timeouts, not-found resources, validation fails. You want one consistent error response and clean logs, without sprinkling try/catch everywhere. Two good options Option A — Global Exception Handler recom...
  • asp
  • net
  • core
  • c#
Spyros • Apr 10, 2025 • in Articles • 2 min read
Blazor1 is a modern framework from Microsoft that allows you to build interactive web applications using C# and .NET, both on the server and the client, without needing JavaScript. It brings the full power of .NET to the browser via WebAssembly or se...
  • blazor
  • asp
  • net
  • core
  • c#
Spyros • Mar 31, 2025 • in Articles • 3 min read
Many experienced developers are familiar with database transactions but often overlook the key differences between optimistic and pessimistic concurrency control in Entity Framework Core EF Core. Understanding both approaches and how EF Core handle...
  • microservices
  • ef
  • c#
  • asp
  • database
Spyros • Mar 24, 2025 • in Articles • 3 min read
Entity Framework Core 7 introduced two powerful methods for bulk operations: ExecuteUpdateAsync and ExecuteDeleteAsync. These methods are designed for high-performance scenarios where you need to update or delete multiple records efficiently with...
  • ef
  • core
  • c#
  • microservices
  • asp
Spyros • Mar 6, 2025 • in Articles • 3 min read
When working with Entity Framework Core EF Core, there are different strategies for loading related data from the database. So, how do you load a collection or other related objects? Here are the main options: 1️⃣ Eager Loading Include Loads rela...
  • c#
  • ef
  • core
  • asp
  • microservices
Spyros • Mar 2, 2025 • in Articles • 2 min read
Entity Framework Core EF Core Global Query Filters allow you to apply filters to queries at the model level so that they automatically apply to all queries involving a specific entity. This is particularly useful for scenarios like soft deletes, mu...
  • ef
  • core
  • c#
  • asp
  • net
To see more, click for the full list of posts or popular tags.
chevron_left
🔥 15 posts • 👩‍💻 3 active writers

✨ Want to write in this topic?
Share your learning. Get discovered. Build your profile.
Join CoderLegion

💡 Why developers use CoderLegion
Track learning • Share posts • Get ranked publicly
Create your profile