Jimmy Bogard
  • About
  • Consulting
  • Training
  • Contact
GitHub YouTube LinkedIn RSS
Sign in Subscribe

Dependency Injection

A collection of 2 posts
CSharp

Crossing the Generics Divide

Generics are great, until they aren't, and when they aren't is when you don't know the type at compile-time but at runtime. This isn't necessarily a bad thing, and isn't necessarily a design problem. Remember, void Main is not generic,
Mar 3, 2021 5 min read
Dependency Injection

Choosing a ServiceLifetime

A subtle source of errors and less-than-subtle source of frustration is understanding and using service lifetimes appropriately with .NET Core dependency injection. Service lifetimes, while complicated on the surface, can help developers that need to share state across different lifetimes of an application. Typically, a long-running application has three service
Jan 28, 2021 2 min read
Page 1 of 1
Jimmy Bogard © 2025
Powered by Ghost