270
|
1 using System.Xml.Serialization;
|
|
2
|
|
3 namespace Implab.ServiceHost.Unity {
|
|
4 public class PropertyInjectionElement : AbstractInjectionElement {
|
|
5
|
272
|
6 [XmlAttribute("name")]
|
|
7 public string Name { get; set; }
|
|
8
|
270
|
9 [XmlElement("dependency", typeof(DependencyParameterElement))]
|
|
10 [XmlElement("value", typeof(ValueParameterElement))]
|
|
11 [XmlElement("serialized", typeof(SerializedParameterElement))]
|
|
12 [XmlElement("default", typeof(DefaultParameterElement))]
|
|
13 public InjectionParameterElement Value { get; set; }
|
272
|
14
|
|
15 internal override void Visit(RegistrationContext context) {
|
|
16 context.Visit(this);
|
|
17 }
|
270
|
18 }
|
|
19 } |