This repository was archived by the owner on Mar 2, 2023. It is now read-only.

Description
When using Unity with ASP.NET Web API project i added the following packages
<package id="Unity" version="5.8.5" targetFramework="net471" />
<package id="Unity.Abstractions" version="3.3.0" targetFramework="net471" />
<package id="Unity.AspNet.WebApi" version="5.0.13" targetFramework="net471" />
<package id="Unity.Container" version="5.7.0" targetFramework="net471" />
<package id="WebActivatorEx" version="2.2.0" targetFramework="net471" />
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
Microsoft.AspNet.Razor
Microsoft.AspNet.WebPages
Microsoft.AspNet.Mvc
Is there a way to use PerRequestLifetimeManager in ASP.NET Web API without adding Unity.Mvc package?