However, I can not use PerRequestLifetimeManager because it is not part of Unity.AspNet.WebApi. Instead PerRequestLifetimeManager is part of Unity.Mvc. and when Unity.Mvc Nuget package is added to Web Api Project it brings in other Web UI related dependencies like
When using Unity with ASP.NET Web API project i added the following packages
However, I can not use
PerRequestLifetimeManager
because it is not part ofUnity.AspNet.WebApi
. InsteadPerRequestLifetimeManager
is part ofUnity.Mvc
. and whenUnity.Mvc
Nuget package is added to Web Api Project it brings in other Web UI related dependencies likeIs there a way to use
PerRequestLifetimeManager
in ASP.NET Web API without addingUnity.Mvc
package?