view Implab.ServiceHost/Unity/IncludeElement.cs @ 269:ff581cff7003 v3

Working on Unity container xml configuration
author cin
date Tue, 24 Apr 2018 01:46:02 +0300
parents
children ade80d94dfb5
line wrap: on
line source

using System.Xml.Serialization;

namespace Implab.ServiceHost.Unity {
    [XmlRoot("include", Namespace = Schema.ContainerConfigurationNamespace)]
    public class IncludeElement : IConfigurationElement {
        [XmlAttribute("href")]
        public string Href { get; set; }

        public void Visit(ConfigurationContext context) {
            context.Include(Href);
        }
    }
}