annotate Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 274:22629bf26121 v3

Unity xml configuration, alpha2
author cin
date Fri, 27 Apr 2018 04:47:52 +0300
parents 79110a16cab7
children 6fefd5811b9b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
1 using System.Xml.Serialization;
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
2
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
3 namespace Implab.ServiceHost.Unity {
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
4 public class DependencyParameterElement : InjectionParameterElement, IDependencyReference {
272
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
5
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 DependencyName { get; set; }
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
8
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
9 [XmlAttribute("optional")]
9d1cca834b05 preview version of Unity xml configuration
cin
parents: 270
diff changeset
10 public bool Optional { get; set; }
274
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
11
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
12 internal override void Visit(InjectionValueBuilder builder) {
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
13 builder.Visit(this);
22629bf26121 Unity xml configuration, alpha2
cin
parents: 273
diff changeset
14 }
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
15 }
ade80d94dfb5 Working on Unity container xml configuration
cin
parents:
diff changeset
16 }