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