RegistrationBuilder.cs
31 lines
| 928 B
| text/x-csharp
|
CSharpLexer
cin
|
r289 | using System; | |
using System.Collections.Generic; | |||
using System.ComponentModel; | |||
using System.Linq; | |||
using System.Xml.Serialization; | |||
using Implab.Xml; | |||
using Unity.Injection; | |||
using Unity.Lifetime; | |||
using Unity.Registration; | |||
namespace Implab.ServiceHost.Unity { | |||
/// <summary> | |||
/// Базовый класс для формирования записей в контейнере, созволяет указать время жизни для записи | |||
/// </summary> | |||
public abstract class RegistrationBuilder { | |||
public ContainerBuilder Root { | |||
get; private set; | |||
} | |||
public Type RegistrationType { | |||
get; | |||
private set; | |||
} | |||
internal LifetimeManager Lifetime { get; set; } | |||
protected RegistrationBuilder(Type registrationType, ContainerBuilder root) { | |||
Root = root; | |||
RegistrationType = registrationType; | |||
} | |||
} | |||
} |