view Implab.ServiceHost/Unity/ContainerElement.cs @ 277:963b17c275be v3

Refactoring Added <array> element to injection parameters Working on registrations of factories
author cin
date Sat, 28 Apr 2018 18:48:09 +0300
parents 22629bf26121
children
line wrap: on
line source

using Implab.Xml;
using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;

namespace Implab.ServiceHost.Unity {
    [XmlRoot("container", Namespace = Schema.ContainerConfigurationNamespace)]
    public class ContainerElement : AbstractContainerItem {

        public List<AbstractContainerItem> Items { get; set; } = new List<AbstractContainerItem>();

        public override void Visit(ContainerBuilder context) {
            if (Items != null)
                foreach(var item in Items)
                    item.Visit(context);
        }
    }
}