- How can I access
Container
instance out of controller? - I have to use
Container.Resolve
in my class but how can I accessContainer
instance? - Is it singleton?
- Can I use
new Container()
or is there any chain likeFunq.StaticContainer
?
Thanks to Mythz for gist hint, a) or b) or c).
I will use Mythz's solution, it is accepted by me but there are concerns for it's pattern (ServiceLocator
Pattern), you can check here for extra info.