RequestLifetimeMiddleware 1.1.0

Unity Owin RequestLifetimeMiddleware

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.

Install-Package RequestLifetimeMiddleware -Version 1.1.0
dotnet add package RequestLifetimeMiddleware --version 1.1.0
paket add RequestLifetimeMiddleware --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Interface breaking change to extension method name to be more consistant.
Also, Changed key for registering middleware.

Version History

Version Downloads Last updated
1.1.0 (current version) 635 6/24/2015
1.0.0 154 6/16/2015