Mercurial > pub > ImplabNet
view Implab.ServiceHost/Unity/ServiceElement.cs @ 267:6b3e5c48131b v3
Working on Unity xml configuration
author | cin |
---|---|
date | Fri, 20 Apr 2018 19:05:12 +0300 |
parents | |
children |
line wrap: on
line source
using System; using System.Xml.Serialization; namespace Implab.ServiceHost.Unity { [XmlRoot("register", Namespace = Schema.ContainerConfigurationNamespace)] public class ServiceElement { /// <summary> /// An optional name for a registration in the container /// </summary> [XmlAttribute("name")] public string Name { get; set; } /// <summary> /// An optional type specification for the service registration, /// must be assignable from the type specified by <see cref="ImplementedType"/> /// </summary> [XmlAttribute("provides")] public string ProvidesType { get; set; } /// <summary> /// The type which is registered as a service in the container. /// </summary> [XmlAttribute("type")] public string ImplementedType { get; set; } } }