Your absolutely right, I have included a singleton Lifetime Management in my example, however depending on the usage scenario i.e. ASP.NET / MVC then you could use Unity.Mvc.PerRequestLifetimeManager.
Good point about the using the expression c to resolve the context rather than the container instance.
Thanks
Toby.
Good point about the using the expression c to resolve the context rather than the container instance.
Thanks
Toby.