<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>.NET articles – Ivan Gechev</title>
    <link>https://ivangechev.com/blog</link>
    <description>Articles about .NET by Ivan Gechev.</description>
    <language>en-us</language>
    <managingEditor>i.banov.g@gmail.com (Ivan Gechev)</managingEditor>
    <webMaster>i.banov.g@gmail.com (Ivan Gechev)</webMaster>
    <lastBuildDate>Sun, 15 Nov 2026 00:00:00 GMT</lastBuildDate>
    <image>
      <url>https://ivangechev.com/static/images/avatar.png</url>
      <title>.NET articles – Ivan Gechev</title>
      <link>https://ivangechev.com/blog</link>
    </image>
    <atom:link href="https://ivangechev.com/tags/dotnet/feed.xml" rel="self" type="application/rss+xml"/>
    
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/async-options-validation-at-startup-net-11</guid>
      <title>Async Options Validation at Startup in .NET 11</title>
      <link>https://ivangechev.com/blog/dotnet/async-options-validation-at-startup-net-11</link>
      <description>Learn how to validate options asynchronously at startup in .NET 11 with IAsyncValidateOptions and the new async Validate overloads, so your application fails fast when a configured endpoint is unreachable or misconfigured.</description>
      <pubDate>Sun, 15 Nov 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Options Pattern</category><category>Validation</category><category>ASP.NET Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/csharp-15-union-types-in-minimal-apis</guid>
      <title>C# 15 Union Types in ASP.NET Core Minimal APIs</title>
      <link>https://ivangechev.com/blog/dotnet/csharp-15-union-types-in-minimal-apis</link>
      <description>Learn how to use C# 15 union types in ASP.NET Core 11 Minimal APIs. We declare unions, use exhaustive pattern matching, accept and return them as JSON, see how they show up in OpenAPI, and compare them with closed class hierarchies.</description>
      <pubDate>Sun, 15 Nov 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>ASP.NET Core</category><category>Systemtextjson</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/localizing-validation-messages-in-net-11-minimal-apis</guid>
      <title>Localizing Validation Messages in .NET 11 Minimal APIs</title>
      <link>https://ivangechev.com/blog/minimal-apis/localizing-validation-messages-in-net-11-minimal-apis</link>
      <description>Learn how to localize validation error messages and display names in .NET 11 Minimal APIs using the built-in localization support in Microsoft.Extensions.Validation, resource files, convention-based keys, and custom attributes.</description>
      <pubDate>Sun, 15 Nov 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Validation</category><category>Localization</category><category>ASP.NET Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/async-validation-in-net-11-minimal-apis</guid>
      <title>Async Validation in .NET 11 Minimal APIs</title>
      <link>https://ivangechev.com/blog/minimal-apis/async-validation-in-net-11-minimal-apis</link>
      <description>Learn how to use the new async validation support in .NET 11 Minimal APIs with AsyncValidationAttribute and IAsyncValidatableObject to run database-backed validation rules before your endpoint handlers even execute.</description>
      <pubDate>Wed, 11 Nov 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Validation</category><category>ASP.NET Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/calling-azure-openai-from-dotnet</guid>
      <title>Calling Azure OpenAI from .NET: Setup, Authentication, and Deployments</title>
      <link>https://ivangechev.com/blog/dotnet/calling-azure-openai-from-dotnet</link>
      <description>Learn how to call Azure OpenAI from a .NET application. From the SDK installation and the difference between deployment names and model names, to API key authentication, standard completions, and streaming with Server-Sent Events.</description>
      <pubDate>Mon, 13 Apr 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Azure OpenAI</category><category>AI</category><category>ASP.NET Core</category><category>Azure</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/endpoint-filters-in-minimal-apis</guid>
      <title>Endpoint Filters in ASP.NET Core Minimal APIs</title>
      <link>https://ivangechev.com/blog/minimal-apis/endpoint-filters-in-minimal-apis</link>
      <description>Endpoint filters in ASP.NET Core Minimal APIs let us run cross-cutting logic before and after handlers execute — without touching the handler itself. Here&apos;s how they work and when to reach for them.</description>
      <pubDate>Wed, 08 Apr 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>ASP.NET Core</category><category>Minimal APIs</category><category>Endpoint Filters</category><category>.NET</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/uentvalidation-vs-dotnet-10-validation</guid>
      <title>FluentValidation vs .NET 10 Built-In Validation: Performance Benchmark</title>
      <link>https://ivangechev.com/blog/minimal-apis/uentvalidation-vs-dotnet-10-validation</link>
      <description>FluentValidation vs .NET 10 built-in validation — I ran a real BenchmarkDotNet test across 1,000 sequential and parallel requests to see which is faster in ASP.NET Core Minimal APIs.</description>
      <pubDate>Tue, 24 Mar 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Performance</category><category>FluentValidation</category><category>Validation</category><category>BenchmarkDotNet</category><category>ASP.NET Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/validate-incoming-requests-net-10-minimal-apis</guid>
      <title>How to Validate Incoming Requests in .NET 10 Minimal APIs</title>
      <link>https://ivangechev.com/blog/minimal-apis/validate-incoming-requests-net-10-minimal-apis</link>
      <description>Learn how to validate incoming requests in .NET 10 Minimal APIs using data annotations, custom validation, and built-in ProblemDetails responses using this complete guide paired with practical examples.</description>
      <pubDate>Thu, 12 Feb 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Validation</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/clean-endpoint-registration-using-extension-methods</guid>
      <title>Clean Endpoint Registration in ASP.NET Core Minimal APIs Using Extension Methods</title>
      <link>https://ivangechev.com/blog/minimal-apis/clean-endpoint-registration-using-extension-methods</link>
      <description>Discover how to organize Minimal API endpoints using simple extension methods. This straightforward approach keeps your Program.cs clean without the complexity of reflection, making it perfect for small to medium-sized APIs where explicit registration is preferred.</description>
      <pubDate>Tue, 27 Jan 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/minimal-apis/dynamic-endpoint-egistration-using-reflection</guid>
      <title>Dynamic Endpoint Registration in ASP.NET Core Minimal APIs Using Reflection</title>
      <link>https://ivangechev.com/blog/minimal-apis/dynamic-endpoint-egistration-using-reflection</link>
      <description>Learn how to automatically register Minimal API endpoints in .NET using reflection. This approach keeps our Program.cs clean and scalable as our API grows, eliminating repetitive route definitions and enabling convention-based endpoint discovery through assembly scanning and service descriptor registration.</description>
      <pubDate>Tue, 20 Jan 2026 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Reflection</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/optimistic-concurrency-with-date-time</guid>
      <title>Optimistic Concurrency in EF Core Using DateTime, Not RowVersion</title>
      <link>https://ivangechev.com/blog/dotnet/optimistic-concurrency-with-date-time</link>
      <description>Prevent lost updates with optimistic concurrency in EF Core: use a DateTime concurrency token instead of RowVersion, handle DbUpdateConcurrencyException and return 409 Conflict.</description>
      <pubDate>Fri, 17 Oct 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>EF Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/minimal-api-filters</guid>
      <title>Building Endpoint Validation Filters in ASP.NET Core Minimal APIs</title>
      <link>https://ivangechev.com/blog/dotnet/minimal-api-filters</link>
      <description>Explore how to use Endpoint Filters in ASP.NET Core Minimal APIs to handle cross-cutting concerns while keeping your endpoint logic clean, maintainable, and DRY.</description>
      <pubDate>Sat, 11 Oct 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Validation</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/named-query-filters</guid>
      <title>EF Core 10 Named Query Filters: Multiple Filters per Entity</title>
      <link>https://ivangechev.com/blog/dotnet/named-query-filters</link>
      <description>EF Core 10 finally lets us define multiple named global query filters per entity and turn them off one at a time with IgnoreQueryFilters(). Here&apos;s how it works in practice.</description>
      <pubDate>Fri, 29 Aug 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>EF Core</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/minimal-api-response-types</guid>
      <title>Minimal API Response Types: Produces&lt;T&gt; vs TypedResults</title>
      <link>https://ivangechev.com/blog/dotnet/minimal-api-response-types</link>
      <description>Document the response types of ASP.NET Core Minimal APIs for OpenAPI: manually with Produces&lt;T&gt; and ProducesValidationProblem(), or automatically with TypedResults.</description>
      <pubDate>Sat, 17 May 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/rate-limiting-in-minimal-apis</guid>
      <title>Rate Limiting in Minimal APIs</title>
      <link>https://ivangechev.com/blog/dotnet/rate-limiting-in-minimal-apis</link>
      <description>Rate limiting is a technique used to control how many requests a client can make to an API within a certain timeframe. In this article, we will explore how to implement rate limiting in .NET Minimal APIs using the built-in middleware, focusing on the Fixed Window strategy and applying limits per endpoint.</description>
      <pubDate>Tue, 15 Apr 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/api-key-authentication</guid>
      <title>API Key Authentication in .NET Minimal APIs</title>
      <link>https://ivangechev.com/blog/dotnet/api-key-authentication</link>
      <description>API key authentication is a common approach to securing APIs by requiring clients to provide a unique key with each request. In this article, we will explore how to implement API key authentication in .NET Minimal APIs while supporting multiple API keys.</description>
      <pubDate>Sat, 29 Mar 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category><category>Security</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/minimal-api-course</guid>
      <title>Master Minimal APIs With The &quot;Minimal APIs In ASP.NET Core&quot; Course</title>
      <link>https://ivangechev.com/blog/dotnet/minimal-api-course</link>
      <description>Minimal APIs, the streamlined, lightweight approach to creating APIs in .NET, offer a perfect blend of simplicity, flexibility, and power. Whether you’re new to API development or a seasoned developer looking to refine your skills, this course has everything you need to take your expertise to the next level.</description>
      <pubDate>Tue, 11 Feb 2025 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Minimal APIs</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/dotnet/primary-constructors</guid>
      <title>C# Primary Constructors for Classes and Structs Explained</title>
      <link>https://ivangechev.com/blog/dotnet/primary-constructors</link>
      <description>Learn how C# primary constructors work for classes and structs, how they differ from records, and the pitfalls to avoid, like mutable parameters and double capture.</description>
      <pubDate>Thu, 28 Dec 2023 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category>
    </item>
    <item>
      <guid isPermaLink="true">https://ivangechev.com/blog/azure/securing-secrets-with-azure-key-vault</guid>
      <title>Azure Key Vault in .NET: Read, Store and Load Secrets</title>
      <link>https://ivangechev.com/blog/azure/securing-secrets-with-azure-key-vault</link>
      <description>Learn how to use Azure Key Vault in .NET: authenticate with DefaultAzureCredential, read and create secrets with SecretClient, and load them straight into IConfiguration.</description>
      <pubDate>Thu, 20 Jul 2023 00:00:00 GMT</pubDate>
      <author>i.banov.g@gmail.com (Ivan Gechev)</author>
      <category>C#</category><category>.NET</category><category>Azure</category><category>Security</category>
    </item>
  </channel>
</rss>
