autofac-serilog-integration icon indicating copy to clipboard operation
autofac-serilog-integration copied to clipboard

SourceContext is not populated whtn InjectUnsetProperties is used.

Open pawelpabich opened this issue 9 years ago • 1 comments

Hi,

I have a sample code here: https://github.com/pawelpabich/serilog-autofac-injectunsetproprties. I can't resolve the MyType object directly from the container. InjectUnsetProperties sets the Logger property but SourceContext does not seem to be populated. I will try to figure out why when I get some time.

pawelpabich avatar Jun 29 '15 00:06 pawelpabich

Hi Pawel,

This is reliant on a feature added in Autofac 4 - will need to wait for that to RTM before this is possible.

I'll leave this ticket open as a reminder to verify.

Cheers!

nblumhardt avatar Jul 23 '15 07:07 nblumhardt