Mercurial > pub > ImplabNet
view Implab.ServiceHost/Unity/PropertyInjectionElement.cs @ 273:79110a16cab7 v3
Working on Unity xml configuration: Refactoring in progress
author | cin |
---|---|
date | Thu, 26 Apr 2018 19:35:01 +0300 |
parents | 9d1cca834b05 |
children | 22629bf26121 |
line wrap: on
line source
using System.Xml.Serialization; namespace Implab.ServiceHost.Unity { public class PropertyInjectionElement : AbstractInjectionElement { [XmlAttribute("name")] public string Name { get; set; } [XmlElement("dependency", typeof(DependencyParameterElement))] [XmlElement("value", typeof(ValueParameterElement))] [XmlElement("serialized", typeof(SerializedParameterElement))] [XmlElement("default", typeof(DefaultParameterElement))] public InjectionParameterElement Value { get; set; } internal override void Visit(RegistrationContext context) { context.Visit(this); } } }