/aspnetcore
Minimal APIs, middleware, dependency injection, configuration, and the parts of the request pipeline that only bite you in production.
Videos filed under aspnetcore
ShortFix Ambiguous Constructors in ASP.NET Dependency Injection!
Ambiguous ASP.NET Core dependency injection constructors can be resolved with an explicit constructor attribute, a factory, or keyed services.
0:542,873 views84 likes VideoDependency Injection Mistakes You Need to Avoid!
Five ASP.NET Core dependency injection failures cover missing registrations, circular dependencies, lifetime mismatches, ambiguous constructors, and scoped services used by background work.
7:578,503 views344 likes ShortIExceptionHandler Makes ASP.NET Exceptions Easy
.NET 8's `IExceptionHandler` supports centralized ASP.NET exception handling through built-in middleware and modular handlers for specific exception types.
0:571,546 views79 likes VideoBuilding Custom Middleware for ASP.NET Core
Queues, stacks, and dictionaries solve distinct C# collection problems involving fair ordering, last-in-first-out history, and fast typed lookups.
13:4112,284 views404 likes VideoHandle ASP.NET Core Exceptions Globally
C# pattern matching can compare a boxed runtime value with a constant even when equality operators reject the incompatible static types.
9:3416,231 views605 likes ShortDon't Make This Dependency Injection Mistake!
Injecting a shorter-lived service into a longer-lived one effectively extends the dependency's lifetime and creates invalid service designs.
1:493,716 views139 likes ShortIt's ALWAYS CORS!!!!
A live debugging attempt moves from successful compilation to a failed fetch before identifying CORS as the culprit.
0:24610 views17 likes VideoShould my Services be Transient, Scoped, or Singleton?
.NET dependency injection lifetimes are explained through transient, scoped, and singleton services, including the risks of mutable singletons and injecting shorter-lived dependencies into longer-lived services.
3:4020,329 views778 likes VideoMVC vs. Minimal API vs. FastEndpoints - Which is Best for Your Project?
ASP.NET controllers, minimal APIs, and FastEndpoints offer different tradeoffs in organization, dependency injection, documentation, syntax, and built-in features.
4:3925,308 views673 likes