comparison Implab.ServiceHost/Unity/ValueParameterElement.cs @ 274:22629bf26121 v3

Unity xml configuration, alpha2
author cin
date Fri, 27 Apr 2018 04:47:52 +0300
parents 79110a16cab7
children 6fefd5811b9b
comparison
equal deleted inserted replaced
273:79110a16cab7 274:22629bf26121
1 using System.Xml.Serialization; 1 using System.Xml.Serialization;
2 2
3 namespace Implab.ServiceHost.Unity 3 namespace Implab.ServiceHost.Unity {
4 { 4 public class ValueParameterElement : InjectionParameterElement, ITextValue {
5 public class ValueParameterElement : InjectionParameterElement
6 {
7 [XmlText] 5 [XmlText]
8 [XmlAttribute("value")] 6 [XmlAttribute("value")]
9 public string Value { get; set; } 7 public string Value { get; set; }
10 8
11 internal override object Resolve(RegistrationContext context) { 9 internal override void Visit(InjectionValueBuilder builder) {
12 return context.Resolve(this); 10 builder.Visit(this);
13 } 11 }
14 } 12 }
15 } 13 }