If I have a PerWebRequest
object that has a wcf proxy dependency with a PerThread lifestyle, will the container
- a) use the same proxy instance after the container auto-releases the parent object?
- b) will the releasing of the PerWebRequest object cause the proxy to be released every time?
If a), then should I release the service explicitly to avoid leakage, or if b), is there any real benefit to using PerThread for the proxy if this is the only place it's being injected?