Posts tagged "C#"

11 articles on AJ's Tech Notes tagged with C#.

  1. Long-Running MCP Tools in C#: Call a Six-Second Tool as a Task and Poll It

    Call a six-second MCP tool as a task and poll it to completion with the C# Tasks extension: server and client code that ran, the client methods, and what to fix before production.

    By Ajith Joseph · Sat Nov 07 2026 · #dotnet #csharp #mcp #aspnet-core

  2. November 10: Moving .NET 8 and .NET 9 AI and MCP Projects to .NET 10

    .NET 8 and .NET 9 reach end of support on November 10, 2026. A checklist for moving AI and MCP projects to .NET 10, and why .NET 11 can wait in CI for now.

    By Ajith Joseph · Fri Nov 06 2026 · #dotnet #csharp #ai #aspnet-core

  3. Human Approval for Agent Tools with Microsoft Agent Framework in .NET

    Require a human yes before an agent runs a risky tool in Microsoft Agent Framework. Tested numbers for approve and reject, and the local-function naming trap that made it look broken.

    By Ajith Joseph · Thu Nov 05 2026 · #dotnet #csharp #security #ai-agents

  4. Testing .NET AI Apps with Microsoft.Extensions.AI.Evaluation

    Score model output in unit tests with Microsoft.Extensions.AI.Evaluation: the packages, a first relevance evaluation, how to assert safely, and rules for keeping an LLM judge repeatable.

    By Ajith Joseph · Tue Nov 03 2026 · #dotnet #csharp #ai #testing

  5. A Production Pipeline for IChatClient: Microsoft.Extensions.AI Middleware in Order

    A production pipeline for IChatClient with Microsoft.Extensions.AI 10.x: cache, function invocation, OpenTelemetry and logging, why the order matters, and two tests that prove it.

    By Ajith Joseph · Mon Nov 02 2026 · #dotnet #csharp #ai #middleware

  6. The MCP C# SDK 2.x Release Train: What Changed Since 2.0 and What Breaks When You Upgrade

    What changed between MCP C# SDK 2.0 and 2.3: stateless HTTP by default, Tasks as an extension, nullable ServerInfo and stricter OAuth, with an upgrade checklist tested against a real server.

    By Ajith Joseph · Sat Oct 31 2026 · #dotnet #csharp #mcp #aspnet-core

  7. A Real Copilot Studio Agent: Wiring a .NET MCP Server to Your Order System

    A real-world Copilot Studio example with working C# code: build an MCP server over an existing order API, connect it as an agent tool, and ship it safely.

    By Ajith Joseph · Tue Sep 22 2026 · #dotnet #csharp #copilot-studio #mcp #ai-agents

  8. How to Build AI Apps in .NET 10 with Microsoft.Extensions.AI

    Learn how to build AI apps in .NET 10 using Microsoft.Extensions.AI. Step-by-step guide for developers to integrate AI seamlessly....

    By Ajith Joseph · Sun Apr 12 2026 · #dotnet #csharp #ai

  9. Middleware in ASP.NET Core: A Comprehensive Guide

    Middleware is a core feature of ASP.NET Core that processes HTTP requests and responses in the request/response pipeline. It enables cross-cutting concerns like logging, authentication, error handling, and more. Learn how middleware works, its types, how to create custom middleware, and best practices for implementing it in your ASP.NET Core applications.

    By Ajith Joseph · Mon Mar 24 2025 · #dotnet #csharp #middleware #aspnet-core

  10. Dependency Injection in .NET Core: A Comprehensive Guide

    Dependency Injection (DI) is a key design pattern in .NET Core that promotes loose coupling, testability, and maintainability. This guide explains the concepts, types of service lifetimes, implementation, and best practices for using DI in .NET Core applications. Learn how to build modular and scalable applications with built-in Dependency Injection.

    By Ajith Joseph · Sun Mar 23 2025 · #dotnet #csharp #dependency-injection

  11. RESTful API Best Practices for .NET Developers

    Complete guide to RESTful API architecture and best practices for .NET developers

    By Ajith Joseph · Sat Mar 22 2025 · #dotnet #csharp #api-design