annotate Implab.ServiceHost/Unity/ContainerLifetimeElement.cs @ 281:e0916ddc9950 v3 tip

code cleanup and refactoring
author cin
date Fri, 01 Jun 2018 21:35:24 +0300
parents 8714471e8d78
children
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 ContainerLifetimeElement : LifetimeElement {
279
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
6 public override LifetimeManager GetLifetime(ContainerBuilder builder) {
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
7 return new ContainerControlledLifetimeManager();
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
8 }
279
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
9
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
10
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
11 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
12 }