Skip to main content

Posts

Semantic Kernel C# Tutorial: Build AI Agents Step by Step

Learn Microsoft Semantic Kernel in C# with this step-by-step tutorial. Build AI agents, plugins, and copilots in .NET with runnable code. Start today. If you want to add real AI capabilities to a .NET application, Semantic Kernel C# is the fastest, most production-ready route available today. Microsoft Semantic Kernel (SK) is an open-source SDK that lets you plug large language models like GPT-4o, Claude, or local models into ordinary C# code, give them tools (called plugins ), and let them plan and execute multi-step tasks. In this Semantic Kernel tutorial you will build an AI agent step by step: from a "hello world" chat completion, through function calling with your own C# methods, to a stateful copilot that can answer questions about your own data. Every example targets .NET 8 or later and uses the stable Microsoft.SemanticKernel package. You can copy the code straight into a console app and run it. What Is Microsoft Semantic Kernel and Why Use It in C#? At its...
Recent posts

ASP.NET Core Rate Limiting: Protect Your API (2026 Guide)

Learn ASP.NET Core rate limiting with fixed window, sliding window, token bucket and concurrency limiters. Runnable C# examples — secure your API today. If your API is public, it will get hammered — by bots, by misconfigured clients stuck in retry loops, and occasionally by someone actively trying to knock it over. ASP.NET Core rate limiting is the built-in defense for this. Since .NET 7, the Microsoft.AspNetCore.RateLimiting middleware ships in the framework, and in 2026 with .NET 9 and .NET 10 it's mature, fast, and flexible enough that you no longer need a third-party package for most scenarios. In this guide you'll learn what rate limiting actually protects you from, how the four built-in algorithms differ (and which one to choose), and how to wire up a production-ready configuration with per-user partitions, proper 429 responses, and the pitfalls that trip up most teams. Why Rate Limiting Matters for API Security Rate limiting caps how many requests a client can...

C# 13 New Features: Complete Guide for Developers (2026)

Learn every C# 13 new feature with runnable examples: params collections, Lock type, escape sequences, partial properties and more. Master C# 13 today. C# 13 shipped alongside .NET 9 and, while it's not the biggest release in the language's history, it fixes several long-standing pain points that developers hit every single day. If you've been searching for C# 13 new features and want more than a bullet list, this guide walks through every feature with runnable code, explains why each change was made, and calls out the pitfalls that catch teams migrating from C# 12. Whether you're a beginner wondering what params Span<T> means, an intermediate developer wanting best practices for the new Lock type, or a senior engineer evaluating an upgrade to .NET 9 or .NET 10, you'll find what you need here. C# 13 New Features at a Glance params collections – params now works with Span<T> , IEnumerable<T> , List<T> and more, not just arra...

Event-Driven Architecture in C#: Build Loosely Coupled Apps

Learn event-driven architecture in C# with runnable examples: C# events, MediatR, and message queues. Build loosely coupled .NET systems today. Event-driven architecture in C# is one of the most effective ways to build systems that are easy to extend, test, and scale. Instead of one class calling another directly, components announce that something happened and let any interested party react. The result is loosely coupled code: the order service does not need to know that an email service, an inventory service, and an analytics pipeline all care about a new order. In this tutorial you will learn event-driven architecture in C# from the ground up: plain event keywords, in-process domain events with MediatR, and message-broker-based integration events for distributed .NET systems, with runnable code and the pitfalls to avoid. What Is Event-Driven Architecture in C#? An event is an immutable record of something that already happened: OrderPlaced , PaymentFailed , UserRegistered ....

AWS vs Azure vs GCP for .NET Developers: Best Cloud 2026

AWS vs Azure vs GCP for .NET developers compared in 2026 — pricing, services, C# SDKs, and deployment. Find out which cloud is best for your .NET apps today. Choosing between AWS vs Azure vs GCP is one of the most consequential decisions a .NET team makes. In 2026, all three major clouds run C# and ASP.NET Core extremely well — but they differ sharply in developer experience, pricing models, identity integration, and how naturally they fit into a Microsoft-centric stack. This guide compares Amazon Web Services, Microsoft Azure, and Google Cloud Platform specifically from the perspective of a .NET developer, with runnable code, real trade-offs, and a clear recommendation for each type of team. AWS vs Azure vs GCP: The Short Answer for .NET Developers If you want the fastest path from dotnet new to production with the least friction, Azure wins. If your organization already lives on AWS, or you need the broadest service catalog and the largest talent pool, AWS is a superb .NET...

AI Code Review in C#: Automate Reviews with OpenAI & .NET

Learn AI code review in C# with practical .NET examples. Build an automated reviewer using OpenAI, GitHub Actions and Roslyn. Start improving PRs today. AI code review has gone from novelty to standard practice in a remarkably short time. In 2026, most .NET teams already have some form of automated code review running on pull requests, and the ones that don't are usually planning it. But there's a big gap between "we turned on a bot" and "AI review actually makes our codebase better." In this tutorial you'll learn how AI code review works, how to build your own AI-powered reviewer in C# using the OpenAI API and Roslyn, how to wire it into GitHub Actions, and — most importantly — the best practices that separate useful AI reviews from noisy ones. What Is AI Code Review (and Why Should .NET Developers Care)? AI code review uses large language models (LLMs) such as GPT-5, Claude, or Gemini to read code changes and produce feedback: bugs, security iss...