Использование Funq в ServiceStack
How can I access
Container
instance out of controller?
I have to use Container.Resolve
in my class but how can I access Container
instance?
Is it singleton?
Can I use new Container()
or is there any chain like Funq.StaticContainer
?
Благодаря Mythzдля подсказкиа) или б) или в).
Я буду использовать решение Mythz, оно принято мной, но существуют проблемы с его шаблоном (ServiceLocator
Шаблон), вы можетепроверьте здесь для дополнительной информации.