autofac-serilog-integration
autofac-serilog-integration copied to clipboard
SourceContext is not populated whtn InjectUnsetProperties is used.
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.
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!