
ANDYMCM.COM
Andy McMullanCounting objects with Unity. For the first time on my current project (a WCF service), and the project is now fairly large with a significant amount of container configuration. I’m taking advantage of lifetime managers to optimise object reuse, with PerThreadLifetimeManager being particularly attractive in a service less garbage through object reuse but no locking to worry about. Here’s how the extension is used. First, the extension is added to the container:. Var objectCounterExtension = new. ObjectCou...
http://www.andymcm.com/