Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/HierarchicalLifetimeElement.cs @ 279:8714471e8d78 v3
Container configuration cleanup, RC2
| author | cin |
|---|---|
| date | Fri, 04 May 2018 18:12:42 +0300 |
| parents | 963b17c275be |
| children |
comparison
equal
deleted
inserted
replaced
| 278:6691aff01de1 | 279:8714471e8d78 |
|---|---|
| 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 HierarchicalLifetimeElement : LifetimeElement { | 5 public class HierarchicalLifetimeElement : LifetimeElement { |
| 6 public override void Visit(RegistrationBuilder builder) { | 6 public override LifetimeManager GetLifetime(ContainerBuilder builder) { |
| 7 builder.Visit(this); | 7 return new HierarchicalLifetimeManager(); |
| 8 } | 8 } |
| 9 } | 9 } |
| 10 } | 10 } |
