Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/HierarchicalLifetimeElement.cs @ 277:963b17c275be v3
Refactoring
Added <array> element to injection parameters
Working on registrations of factories
author | cin |
---|---|
date | Sat, 28 Apr 2018 18:48:09 +0300 |
parents | 22629bf26121 |
children | 8714471e8d78 |
comparison
equal
deleted
inserted
replaced
276:b4e0f81c7425 | 277:963b17c275be |
---|---|
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 LifetimeManager GetLifetimeManager(ContainerBuilder ctx) { | 6 public override void Visit(RegistrationBuilder builder) { |
7 return new HierarchicalLifetimeManager(); | 7 builder.Visit(this); |
8 } | 8 } |
9 } | 9 } |
10 } | 10 } |