In my registry, I'm registering a lot of things as Singleton
.
I'm doing this because they're all thread safe and have no state. Therefore, one instance in memory is fine.
I'm also using AsyncScoped
lifestyles for types that need context/state, but they are few and far-between compared to the amount of singleton registrations that I have.
Is there anything wrong with registering thread safe, stateless types as singleton?