diff Implab.ServiceHost/Unity/ContextLifetimeElement.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/ContextLifetimeElement.cs	Thu May 03 09:59:44 2018 +0300
+++ b/Implab.ServiceHost/Unity/ContextLifetimeElement.cs	Fri May 04 18:12:42 2018 +0300
@@ -3,8 +3,8 @@
 namespace Implab.ServiceHost.Unity
 {
     public class ContextLifetimeElement : LifetimeElement {
-        public override void Visit(RegistrationBuilder builder) {
-            builder.Visist(this);
+        public override LifetimeManager GetLifetime(ContainerBuilder builder) {
+            return new PerResolveLifetimeManager();
         }
     }
 }
\ No newline at end of file