Home Archive Issue #599
Issue #599

Hosted Workers, AI Tracing and MCP Security

Move console workers onto Generic Host, add request-level OpenTelemetry spans, secure MCP tools, and stream AI responses in ASP.NET Core.

Jasen's top three picks

  1. 1
    Moving a Console Worker Into a Hosted .NET Background Service

    C# Corner

    A practical path from a console worker to managed hosting, with dependency injection, logging, and graceful shutdown.

  2. 2
    Adding custom OpenTelemetry spans so an AI agent can see inside a request

    Meziantou's blog

    Custom spans can reveal request details that existing telemetry misses.

  3. 3
    Securing MCP Tools Before Connecting Them to an ASP.NET Core Application

    C# Corner

    Worth reading before exposing application capabilities through MCP tools.

Editor's note

I’ve curated a mix of practical hosting, observability, security, and AI integration articles today. The hosted-service walkthrough is useful if a console worker has outgrown its original setup; the custom-spans article shows how to make request behavior more visible.

Today's articles

Related issues

📬 Save the search. Get the .NET stories worth reading at 7 AM ET.