comparison Implab.ServiceHost/Unity/RegisterElement.cs @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents d4d437ec4483
children 79110a16cab7
comparison
equal deleted inserted replaced
271:d4d437ec4483 272:9d1cca834b05
10 10
11 /// <summary> 11 /// <summary>
12 /// An optional type which is registered as a service in the container, must be assignable to <see cref="ProvidesType">. 12 /// An optional type which is registered as a service in the container, must be assignable to <see cref="ProvidesType">.
13 /// </summary> 13 /// </summary>
14 [XmlAttribute("type")] 14 [XmlAttribute("type")]
15 public string ImplementedType { get; set; } 15 public string ImplementationType { get; set; }
16 16
17 17
18 [XmlElement("constructor", typeof(ConstructorInjectionElement))] 18 [XmlElement("constructor", typeof(ConstructorInjectionElement))]
19 [XmlElement("property", typeof(PropertyInjectionElement))] 19 [XmlElement("property", typeof(PropertyInjectionElement))]
20 [XmlElement("method", typeof(MethodInjectionElement))] 20 [XmlElement("method", typeof(MethodInjectionElement))]
21 public AbstractInjectionElement[] Injectors { get; set; } 21 public AbstractInjectionElement[] Injectors { get; set; }
22
23 public override void Visit(ConfigurationContext context) {
24 context.Visit(this);
25 }
22 } 26 }
23 27
24 } 28 }