267
|
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 } |