Access current request or session in IOC factory method

Hi,

I am using register as descibed in https://docs.servicestack.net/ioc#net-core-compatible-registration-apis

container.Register<IBar>(c => new Bar { Name = "bar" });

How can I access the current request or session in the factory mode?

Greetings
Andre

You can’t from dependencies, you’d need to pass base.Request in from your Services.