There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Allow Web Api Dependency Resolver to run in an existing scope
The SimpleInjectorWebApiDependencyResolver will always start a new execution context scope when its
BeginScope method is called. Although this is usually not a problem, it makes integrating with OWIN more difficult, since part of the OWIN pipeline is executed before and after that scope. By letting the dependency resolver using the existing
scope, the complete request can run in the same scope and this allows sharing instances throughout the complete request.