RequestLifetimeMiddleware 1.1.0
dotnet add package RequestLifetimeMiddleware --version 1.1.0
NuGet\Install-Package RequestLifetimeMiddleware -Version 1.1.0
<PackageReference Include="RequestLifetimeMiddleware" Version="1.1.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="RequestLifetimeMiddleware" Version="1.1.0" />
<PackageReference Include="RequestLifetimeMiddleware"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add RequestLifetimeMiddleware --version 1.1.0
#r "nuget: RequestLifetimeMiddleware, 1.1.0"
#addin nuget:?package=RequestLifetimeMiddleware&version=1.1.0
#tool nuget:?package=RequestLifetimeMiddleware&version=1.1.0
THIS IS BROKEN AND UNSUPPORTED, DO NOT USE THIS
My packageExample of owin middleware that "fixes" Unity's PerRequestLifetimeManager failure to dispose objects.
When using Unity as your dependency injection container in an Owin site you cannot use the UnityPerRequestHttpModule, which is responsible for diposing of objects registered with PerRequestLifetimeManager. Simply removing it causes these resources to leak, until cleaned up by the garbage collector.
This middleware manages the cleanup tasks previously done by UnityPerRequestHttpModule.
The line "DynamicModuleUtility.RegisterModule(typeof(UnityPerRequestHttpModule));" is no longer required.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.5
- CommonServiceLocator (>= 1.2.0)
- Microsoft.AspNet.Mvc (>= 5.2.2)
- Microsoft.AspNet.Razor (>= 3.2.2)
- Microsoft.AspNet.WebPages (>= 3.2.2)
- Microsoft.Owin (>= 3.0.1)
- Microsoft.Web.Infrastructure (>= 1.0.0)
- Owin (>= 1.0.0)
- Unity (>= 3.5.1404)
- Unity.Mvc (>= 3.5.1404)
- WebActivatorEx (>= 2.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|
Interface breaking change to extension method name to be more consistant.
Also, Changed key for registering middleware.