Bernhard Richter

Results 179 comments of Bernhard Richter
trafficstars

> Will that break the chain? It could, but that scenario should be rare. If you inject some `Func` somewhere that is used to resolve a scoped instance, it could...

https://www.hangfire.io/extensions.html#ioc-containers You are aware of this I assume?

https://github.com/sbosell/Hangfire.LightInject

Yeah, I would at least try to use the extension first. It has a few thousands downloads on NuGet too 👍

Could you provide a small repro of this?

The problem with `Register(Type type, Func` is that you would have to look at the generic arguments of the service type and then use `MakeGenericType` inside that factory delegate to...

I have actually thought about such a method. It is important to remember that the Validate method would also be a runtime check although you would probably fail faster this...

Thanks for reporting this. Will look into it

First of all, thanks a lot for valuable input. I'm just gonna quickly comment on the things I already have an answer for here :) Busy day at work :)...