SingletonLifetimeElement.cs
9 lines
| 270 B
| text/x-csharp
|
CSharpLexer
cin
|
r289 | using Unity.Lifetime; | |
namespace Implab.ServiceHost.Unity | |||
{ | |||
public class SingletonLifetimeElement : LifetimeElement { | |||
public override LifetimeManager GetLifetime(ContainerBuilder builder) { | |||
return new SingletonLifetimeManager(); | |||
} | |||
} | |||
} |