Mercurial > pub > ImplabNet
view Implab.ServiceHost/Unity/MethodInjectionElement.cs @ 281:e0916ddc9950 v3 tip
code cleanup and refactoring
author | cin |
---|---|
date | Fri, 01 Jun 2018 21:35:24 +0300 |
parents | 8714471e8d78 |
children |
line wrap: on
line source
using System.Xml.Serialization; namespace Implab.ServiceHost.Unity { public class MethodInjectionElement : AbstractMemberInjection { [XmlAttribute("name")] public string Name { get; set; } [XmlElement("dependency", typeof(DependencyParameterElement))] [XmlElement("value", typeof(ValueParameterElement))] [XmlElement("serialized", typeof(SerializedParameterElement))] [XmlElement("default", typeof(DefaultParameterElement))] [XmlElement("array", typeof(ArrayParameterElement))] public AbstractInjectionParameter[] Parameters { get; set; } public override void Visit(TypeRegistrationBuilder context) { context.Visit(this); } } }