This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I have a Web API application. I use Simple Injector to inject UnitOfWork into my apiControllers. Simple Injector can manage objects' lifecycle per request.
Does it mean I should inject
instead of
? |
|
|
Yes as long as SimpleInjector is going to call Dispose() on the UnitOfWork instance at the end of the request then that sounds correct. Ensure that this is happening in practice otherwise you will end up with a connection leak.
|
|