PerrequestLifetimeManager 1.0.0

dotnet add package PerrequestLifetimeManager --version 1.0.0                
NuGet\Install-Package PerrequestLifetimeManager -Version 1.0.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="PerrequestLifetimeManager" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PerrequestLifetimeManager --version 1.0.0                
#r "nuget: PerrequestLifetimeManager, 1.0.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 PerrequestLifetimeManager as a Cake Addin
#addin nuget:?package=PerrequestLifetimeManager&version=1.0.0

// Install PerrequestLifetimeManager as a Cake Tool
#tool nuget:?package=PerrequestLifetimeManager&version=1.0.0                

Unity.Wcf.PerrequestLifetimeManager

Unity.Wcf is a popular library in .net which allows WCF applications to implement IOC using Unity. This allows a developer to container that can inject dependecies to classes. Unity.Wcf has several lifetime managers to configure the lifetime of objects in the container. The Unity.Wcf library lacks a lifetime manager that expires per request to the service. The PerrequestLifetimeManager was developed to address this issue.

How to install?

Install-Package PerrequestLifetimeManager -Version 1.0.0

How to configure?

Once the library is installed into the project you can add the following lifetime manager when you register dependencies in WCF.

container.RegisterType<InterfaceName, ClassName>(new PerRequestLifetimeManager());

Inaddition to this the package gives you access to lifetime managers implemented by Unity.Wcf

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
1.0.0 3,515 10/14/2018

Use this library if you want to adapt per request based lifetime manager using Unity.Wcf