annotate Implab.ServiceHost/Unity/HierarchicalLifetimeElement.cs @ 274:22629bf26121 v3

Unity xml configuration, alpha2
author cin
date Fri, 27 Apr 2018 04:47:52 +0300
parents 79110a16cab7
children 963b17c275be
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
1 using Unity.Lifetime;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
2
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
3 namespace Implab.ServiceHost.Unity
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
4 {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
5 public class HierarchicalLifetimeElement : LifetimeElement {
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
6 public override LifetimeManager GetLifetimeManager(ContainerBuilder ctx) {
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
7 return new HierarchicalLifetimeManager();
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
8 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
9 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
10 }