##// END OF EJS Templates
Added test for TraceRegistry
Added test for TraceRegistry

File last commit:

r279:8714471e8d78 v3
r287:78da52bb28f0 v3
Show More
AbstractRegistration.cs
47 lines | 1.5 KiB | text/x-csharp | CSharpLexer
cin
Working on Unity container xml configuration
r269 using System;
using System.Xml.Serialization;
using Unity.Lifetime;
using Unity.Registration;
namespace Implab.ServiceHost.Unity
{
cin
Refactoring...
r277 /// <summary>
/// Базовая информаци о регистрации в контейнере: тип, имя и время жизни
/// </summary>
cin
Container configuration cleanup, RC2
r279 public abstract class AbstractRegistration : AbstractContainerItem, IRegistration {
cin
Working on Unity container xml configuration
r269
/// <summary>
/// An optional name for a registration in the container
/// </summary>
[XmlAttribute("name")]
public string Name {
get; set;
}
cin
Refactoring...
r277 [XmlElement("signleton", typeof(SingletonLifetimeElement))]
cin
Working on Unity xml configuration
r271 [XmlElement("context", typeof(ContextLifetimeElement))]
[XmlElement("container", typeof(ContainerLifetimeElement))]
[XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))]
public LifetimeElement Lifetime {get; set;}
/// <summary>
/// A type specification for the service registration,
/// </summary>
cin
Working on Unity xml configuration: Refactoring in progress
r273 [XmlAttribute("type")]
public string RegistrationType { get; set; }
cin
Working on Unity xml configuration
r271
cin
Container configuration cleanup, RC2
r279 public virtual LifetimeManager GetLifetime(ContainerBuilder builder) {
return Lifetime?.GetLifetime(builder);
}
cin
Refactoring...
r277 public virtual Type GetRegistrationType(Func<string,Type> resolver) {
return resolver(RegistrationType);
}
cin
Container configuration cleanup, RC2
r279 public virtual Type GetRegistrationType(ContainerBuilder builder) {
return builder.ResolveType(RegistrationType);
cin
Refactoring...
r277 }
cin
Container configuration cleanup, RC2
r279
cin
Working on Unity container xml configuration
r269 }
}