annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
267
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
1 using System;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
2 using System.Xml.Serialization;
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
3
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
4 namespace Implab.ServiceHost.Unity {
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
5
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
6 [XmlRoot("register", Namespace = Schema.ContainerConfigurationNamespace)]
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
7 public class ServiceElement {
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
8 /// <summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
9 /// An optional name for a registration in the container
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
10 /// </summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
11 [XmlAttribute("name")]
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
12 public string Name { get; set; }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
13
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
14 /// <summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
15 /// An optional type specification for the service registration,
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
16 /// must be assignable from the type specified by <see cref="ImplementedType"/>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
17 /// </summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
18 [XmlAttribute("provides")]
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
19 public string ProvidesType { get; set; }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
20
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
21 /// <summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
22 /// The type which is registered as a service in the container.
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
23 /// </summary>
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
24 [XmlAttribute("type")]
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
25 public string ImplementedType { get; set; }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
26 }
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
27
6b3e5c48131b Working on Unity xml configuration
cin
parents:
diff changeset
28 }