Mercurial > pub > ImplabNet
comparison 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 |
comparison
equal
deleted
inserted
replaced
266:254d1f255d87 | 267:6b3e5c48131b |
---|---|
1 using System; | |
2 using System.Xml.Serialization; | |
3 | |
4 namespace Implab.ServiceHost.Unity { | |
5 | |
6 [XmlRoot("register", Namespace = Schema.ContainerConfigurationNamespace)] | |
7 public class ServiceElement { | |
8 /// <summary> | |
9 /// An optional name for a registration in the container | |
10 /// </summary> | |
11 [XmlAttribute("name")] | |
12 public string Name { get; set; } | |
13 | |
14 /// <summary> | |
15 /// An optional type specification for the service registration, | |
16 /// must be assignable from the type specified by <see cref="ImplementedType"/> | |
17 /// </summary> | |
18 [XmlAttribute("provides")] | |
19 public string ProvidesType { get; set; } | |
20 | |
21 /// <summary> | |
22 /// The type which is registered as a service in the container. | |
23 /// </summary> | |
24 [XmlAttribute("type")] | |
25 public string ImplementedType { get; set; } | |
26 } | |
27 | |
28 } |