annotate Implab.ServiceHost/Unity/SingletonLifetimeElement.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
279
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
1 using Unity.Lifetime;
8714471e8d78 Container configuration cleanup, RC2
cin
parents: 277
diff changeset
2
269
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 {
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
5 public class SingletonLifetimeElement : 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 SingletonLifetimeManager();
269
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 }