RequestLifetimeMiddleware 1.1.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package RequestLifetimeMiddleware --version 1.1.0
NuGet\Install-Package RequestLifetimeMiddleware -Version 1.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RequestLifetimeMiddleware" Version="1.1.0">
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add RequestLifetimeMiddleware --version 1.1.0
#r "nuget: RequestLifetimeMiddleware, 1.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install RequestLifetimeMiddleware as a Cake Addin
#addin nuget:?package=RequestLifetimeMiddleware&version=1.1.0

// Install RequestLifetimeMiddleware as a Cake Tool
#tool nuget:?package=RequestLifetimeMiddleware&version=1.1.0


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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.