comparison Implab.ServiceHost/Unity/SingletonLifetimeElement.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;
2
1 namespace Implab.ServiceHost.Unity 3 namespace Implab.ServiceHost.Unity
2 { 4 {
3 public class SingletonLifetimeElement : LifetimeElement { 5 public class SingletonLifetimeElement : LifetimeElement {
4 public override void Visit(RegistrationBuilder builder) { 6 public override LifetimeManager GetLifetime(ContainerBuilder builder) {
5 builder.Visit(this); 7 return new SingletonLifetimeManager();
6 } 8 }
7 } 9 }
8 } 10 }