Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/ContextLifetimeElement.cs @ 274:22629bf26121 v3
Unity xml configuration, alpha2
author | cin |
---|---|
date | Fri, 27 Apr 2018 04:47:52 +0300 |
parents | 79110a16cab7 |
children | 963b17c275be |
comparison
equal
deleted
inserted
replaced
273:79110a16cab7 | 274:22629bf26121 |
---|---|
1 using Unity.Lifetime; | 1 using Unity.Lifetime; |
2 | 2 |
3 namespace Implab.ServiceHost.Unity | 3 namespace Implab.ServiceHost.Unity |
4 { | 4 { |
5 public class ContextLifetimeElement : LifetimeElement { | 5 public class ContextLifetimeElement : LifetimeElement { |
6 public override LifetimeManager GetLifetimeManager(ContainerContext ctx) { | 6 public override LifetimeManager GetLifetimeManager(ContainerBuilder ctx) { |
7 return new PerResolveLifetimeManager(); | 7 return new PerResolveLifetimeManager(); |
8 } | 8 } |
9 } | 9 } |
10 } | 10 } |