Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/ValueParameterElement.cs @ 272:9d1cca834b05 v3
preview version of Unity xml configuration
| author | cin |
|---|---|
| date | Thu, 26 Apr 2018 03:14:54 +0300 |
| parents | ade80d94dfb5 |
| children | 79110a16cab7 |
comparison
equal
deleted
inserted
replaced
| 271:d4d437ec4483 | 272:9d1cca834b05 |
|---|---|
| 1 using System.Xml.Serialization; | |
| 2 | |
| 1 namespace Implab.ServiceHost.Unity | 3 namespace Implab.ServiceHost.Unity |
| 2 { | 4 { |
| 3 public class ValueParameterElement : InjectionParameterElement | 5 public class ValueParameterElement : InjectionParameterElement |
| 4 { | 6 { |
| 5 | 7 [XmlText] |
| 8 public string Value { get; set; } | |
| 9 | |
| 10 internal override object Resolve(RegistrationContext context) { | |
| 11 return context.Resolve(this); | |
| 12 } | |
| 6 } | 13 } |
| 7 } | 14 } |
