Mercurial > pub > ImplabNet
diff 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 |
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/SingletonLifetimeElement.cs Thu May 03 09:59:44 2018 +0300 +++ b/Implab.ServiceHost/Unity/SingletonLifetimeElement.cs Fri May 04 18:12:42 2018 +0300 @@ -1,8 +1,10 @@ +using Unity.Lifetime; + namespace Implab.ServiceHost.Unity { public class SingletonLifetimeElement : LifetimeElement { - public override void Visit(RegistrationBuilder builder) { - builder.Visit(this); + public override LifetimeManager GetLifetime(ContainerBuilder builder) { + return new SingletonLifetimeManager(); } } } \ No newline at end of file