c# - Do I need a single instance of the Unity container? -


sorry noob question. i'm beginning use unity 2.0 container silverlight , putting singletons in it. singletons work, need have 1 instance of container in application? assume making new unity container instance whenever want singletons result in separate containers separate singletons.

thanks, -jon

you need single instance of container achieve singleton behaviour. need register singleton classes containercontrolledlifetimemanager.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -