3 ms·
My example above is terrible, because in reality you'd have another level before this, which sorts out your global configuration, reads it and just injects serv
by xnorswap 2y ago
My example above is terrible, because in reality you'd have another level before this, which sorts out your global configuration, reads it and just injects service specific parameters and configuration for each service.
But I just wanted to illustrate idiomatic .NET DI, and on reflection picking configuration was probably the worst way to illustrate it.