Dependency Injection in ASP.NET Core: Lifetimes and Best Practices
Master dependency injection in ASP.NET Core: transient, scoped, and singleton lifetimes, captive dependencies, the options pattern, and keyed services.
Author
539 articles
Master dependency injection in ASP.NET Core: transient, scoped, and singleton lifetimes, captive dependencies, the options pattern, and keyed services.
Build an ASP.NET Core Web API end to end: controllers, attribute routing, model binding and validation, DTOs, status…
Understand ASP.NET Core middleware: pipeline order, Use, Run, and Map, writing custom middleware classes, endpoint routing, and how…
Enable nullable reference types in C#: nullability annotations, the ! operator, required members, nullability attributes, and a legacy…
Use async and await in C# correctly: what Task really is, ValueTask, ConfigureAwait, async void, cancellation tokens, and…
Write idiomatic LINQ in C#: query vs method syntax, deferred execution, IEnumerable vs IQueryable, multiple enumeration traps, and…
Master object-oriented C#: classes, properties, constructors, inheritance, abstract classes, interfaces, records, and when composition beats inheritance.
Jev reached nearly 13% of paid AI Gateway teams unusually fast. Here is what that adoption curve means…
Tool sandboxing and permissions for AI agents: least privilege, role tiers, capability isolation, and sandboxes that actually limit…
How prompt injection in agents works through tools and data, and the defense-in-depth stack: least privilege, output validation,…
Agent state persistence explained: checkpoints, resumable runs, replay safety, versioned state schemas, and how to resume without repeating…
AI agent cost control: token budgets, prompt caching, model routing, and context discipline, measured as cost per successful…
Reliability for agents: the failure taxonomy plus retries, timeouts, fallbacks, circuit breakers, idempotency, and bounded execution that keep…
Deploying AI agents in production: execution boundary, gateway, orchestrator, tool gateway, state stores, queues, workers, and sync vs…