Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Generating new instance

$
0
0
Hi mathius,
  1. I wasn't really expecting that you were using Unity. Singleton type registration in Unity is achieved by explicitly setting a parameter of new ContainerControlledLifetimeManager() to the RegisterType() method. Are you registering the types without any parameter? In the following site you may find more detailed information regarding how object's lifetime works with Unity:

If you might have a sample that you could share with this behavior you described I would be glad to try solving the issue and report you back with the results.

Regards.
Gabriel Ostrowsky
https://blogs.southworks.net/gostrowsky

Viewing all articles
Browse latest Browse all 1878

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>