annotate Implab.ServiceHost/Unity/PropertyInjectionElement.cs @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 22629bf26121
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
1 using System.Xml.Serialization;
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
2
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
3 namespace Implab.ServiceHost.Unity {
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
4 public class PropertyInjectionElement : AbstractInjectionElement {
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
5
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
6 [XmlAttribute("name")]
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
7 public string Name { get; set; }
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
8
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
9 [XmlElement("dependency", typeof(DependencyParameterElement))]
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
10 [XmlElement("value", typeof(ValueParameterElement))]
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
11 [XmlElement("serialized", typeof(SerializedParameterElement))]
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
12 [XmlElement("default", typeof(DefaultParameterElement))]
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
13 public InjectionParameterElement Value { get; set; }
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
14
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
15 internal override void Visit(RegistrationContext context) {
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
16 context.Visit(this);
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
17 }
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
18 }
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
19 }