PerrequestLifetimeManager 1.0.0
PerrequestLifetimeManager Package description
Install-Package PerrequestLifetimeManager -Version 1.0.0
dotnet add 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"
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
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
Release Notes
Use this library if you want to adapt per request based lifetime manager using Unity.Wcf
Dependencies
-
- Unity.Abstractions (>= 3.3.0)
- Unity.Container (>= 5.8.6)
- Unity.Wcf (>= 4.0.0)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 1,945 | 10/14/2018 |