Bernhard Richter

Results 179 comments of Bernhard Richter
trafficstars

Can you produce a simple console application with this code?

I think the issue is related to services being registered after the first call to GetAllInstances. Would it be possible for you to ensure that all composition roots has been...

yeah, a repro project would be great. Just put it up here on GitHub so we can have a look 👍

If the service require a scope, you could start the scope manually. container.BeginScope() You might need to do this before enabling the perwebrequestscope. Put the statement in a using block...

That is very plausible. That is why you might want to do this before enabling the perwebrequestscope.

I’ll help you out. Put up a simple repro here on github and we will PR a solution into that repo

If you put thus into a simple repro, we can have a look at it. Also see #386 for more information around logical call context.

Hi again. Took a look at your repo and it looks like it only contains parts of the original application. > "If you put thus into a simple repro, we...

I am not familiar with Hangfire, but I would most certainly start with managing the scopes inside `OnPerforming` and `OnPerformed` and see where that takes you

A small repro of this would be very useful. How is this hosted? Is it a web app and if so, is it an IIS web app? I'd love to...