Singleton vs Scoped vs Transient in .NET 10 - Service Lifetimes Explained
Singleton vs scoped vs transient in .NET 10: how each service lifetime behaves across a request, when to use which, and how to fix the captive dependency bug.
Showing 13-24 of 167 articles
Singleton vs scoped vs transient in .NET 10: how each service lifetime behaves across a request, when to use which, and how to fix the captive dependency bug.
30 scenario-based .NET system design interview questions with senior answers, red flags, and follow-ups. Caching, background jobs, real-time, scale on .NET 10.
EF Core 10 changed how Contains sends a list to SQL Server. Here is the real parameter ceiling, what happens when you cross it, and benchmarks for every fix.
Run a .NET 10 Web API on a VPS you own instead of App Service. Full Dokploy guide on a DigitalOcean droplet: managed Postgres, Valkey, Cloudflare R2, and SSL.
AI agents default to AutoMapper, MediatR and MassTransit, all now commercial. Verified 2026 licensing, NuGet MCP Server, and guardrails that fail the build.
AutoMapper went commercial in 2025. Compare AutoMapper, Mapster, Mapperly, and manual mapping in .NET 10 with real benchmarks and a decision matrix.
Master IExceptionHandler in ASP.NET Core. Complete guide with custom exceptions, handler chaining, Problem Details, and .NET 10's SuppressDiagnosticsCallback.
30 scenario-based .NET microservices interview questions with great answers, red flags, and follow-ups. Saga, outbox, gRPC, resilience, Aspire - updated for 2026.
Convert HTML to PDF in C# with .NET 10. Build a real invoice endpoint with page breaks, repeating table headers, culture-aware currency and a render queue.
An opinionated guide to API versioning in ASP.NET Core on .NET 10: URL vs header, Asp.Versioning 10.2, Minimal APIs, OpenAPI, and field-level versioning.
A comprehensive, practical roadmap for .NET developers covering C#, AI Tools, ASP.NET Core APIs, Blazor, databases, architecture, cloud, and DevOps. Choose your path: Backend, Frontend with Blazor, or Full-Stack.
20+ battle-tested .NET 10 best practices from a senior developer - async, EF Core optimization, DI, caching, security, exception handling, and more. Updated for 2026.