annotate Implab.ServiceHost/Unity/HierarchicalLifetimeElement.cs @ 270:ade80d94dfb5 v3

Working on Unity container xml configuration
author cin
date Wed, 25 Apr 2018 04:44:40 +0300
parents ff581cff7003
children 79110a16cab7
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 {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
6 public override LifetimeManager GetLifetimeManager(ConfigurationContext ctx) {
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 }