Mercurial > pub > ImplabNet
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Implab.ServiceHost/Unity/ServiceElement.cs Fri Apr 20 19:05:12 2018 +0300 @@ -0,0 +1,28 @@ +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; } + } + +} \ No newline at end of file