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 (2018-06-01) |
parents |
8714471e8d78 |
children |
|
rev |
line source |
279
|
1 using Unity.Lifetime;
|
|
2
|
269
|
3 namespace Implab.ServiceHost.Unity
|
|
4 {
|
277
|
5 public class SingletonLifetimeElement : LifetimeElement {
|
279
|
6 public override LifetimeManager GetLifetime(ContainerBuilder builder) {
|
|
7 return new SingletonLifetimeManager();
|
269
|
8 }
|
|
9 }
|
|
10 } |