Mercurial > pub > ImplabNet
diff Implab.ServiceHost/Unity/RegisterElement.cs @ 271:d4d437ec4483 v3
Working on Unity xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 19:23:35 +0300 |
parents | ade80d94dfb5 |
children | 9d1cca834b05 |
line wrap: on
line diff
--- a/Implab.ServiceHost/Unity/RegisterElement.cs Wed Apr 25 04:44:40 2018 +0300 +++ b/Implab.ServiceHost/Unity/RegisterElement.cs Wed Apr 25 19:23:35 2018 +0300 @@ -9,23 +9,11 @@ public class RegisterElement : AbstractRegistration { /// <summary> - /// An optional type specification for the service registration, - /// must be assignable from the type specified by <see cref="ImplementedType"/> - /// </summary> - [XmlAttribute("provides")] - public string ProvidesType { get; set; } - - /// <summary> - /// The type which is registered as a service in the container. + /// An optional type which is registered as a service in the container, must be assignable to <see cref="ProvidesType">. /// </summary> [XmlAttribute("type")] public string ImplementedType { get; set; } - [XmlElement("signleton", typeof(SimgletonLifetimeElement))] - [XmlElement("context", typeof(ContextLifetimeElement))] - [XmlElement("container", typeof(ContainerLifetimeElement))] - [XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))] - public LifetimeElement Lifetime {get; set;} [XmlElement("constructor", typeof(ConstructorInjectionElement))] [XmlElement("property", typeof(PropertyInjectionElement))]