view Implab.ServiceHost/Unity/ConstructorInjectionElement.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 ConstructorInjectionElement : AbstractMemberInjection {
        
        [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 builder) {
            builder.Visit(this);
        }
    }
}