PerrequestLifetimeManager 1.0.0
dotnet add package PerrequestLifetimeManager --version 1.0.0
NuGet\Install-Package PerrequestLifetimeManager -Version 1.0.0
<PackageReference Include="PerrequestLifetimeManager" Version="1.0.0" />
paket add PerrequestLifetimeManager --version 1.0.0
#r "nuget: PerrequestLifetimeManager, 1.0.0"
// 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 | 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. |
-
- Unity.Abstractions (>= 3.3.0)
- Unity.Container (>= 5.8.6)
- Unity.Wcf (>= 4.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 |
---|---|---|
1.0.0 | 3,502 | 10/14/2018 |
Use this library if you want to adapt per request based lifetime manager using Unity.Wcf