Mercurial > pub > ImplabNet
diff Implab.ServiceHost/Unity/AbstractRegistration.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/AbstractRegistration.cs Wed Apr 25 04:44:40 2018 +0300 +++ b/Implab.ServiceHost/Unity/AbstractRegistration.cs Wed Apr 25 19:23:35 2018 +0300 @@ -15,6 +15,18 @@ get; set; } + [XmlElement("signleton", typeof(SimgletonLifetimeElement))] + [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> + [XmlAttribute("provides")] + public string ProvidesType { get; set; } + public void Visit(ConfigurationContext context) { context.Visit(this); }