0

In my WCF service I use Unity to resolve my services and their dependencies.

When registering types I want to give some types the lifetime of the request. Is there any well known and "correct" implementations of a PerRequestLifetimeManager?

Umair M
  • 8,566
  • 3
  • 33
  • 67
Erik Z
  • 4,150
  • 6
  • 40
  • 69
  • 2
    There are several. I use some code from [Andrew Oakley's Blog](https://blogs.msdn.microsoft.com/atoakley/2010/12/29/unity-lifetime-managers-and-wcf/). `UnityOperationContextLifetimeManager` should suite your needs. – smoksnes Nov 08 '16 at 14:05
  • 2
    Possible duplicate of [Singleton Per Call Context WCF Web Request in Unity](http://stackoverflow.com/questions/12919872/singleton-per-call-context-wcf-web-request-in-unity) – smoksnes Nov 08 '16 at 14:08

0 Answers0