annotate Implab.ServiceHost/Unity/NamespaceElement.cs @ 279:8714471e8d78 v3

Container configuration cleanup, RC2
author cin
date Fri, 04 May 2018 18:12:42 +0300
parents 6691aff01de1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
1 using System.Xml.Serialization;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
2
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
3 namespace Implab.ServiceHost.Unity
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
4 {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
5 [XmlRoot("namespace", Namespace = Schema.ContainerConfigurationNamespace)]
277
963b17c275be Refactoring
cin
parents: 274
diff changeset
6 public class NamespaceElement : AbstractContainerItem {
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
7
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
8 [XmlAttribute("name")]
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
9 public string Name { get; set; }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
10
278
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
11 public override void Visit(ContainerBuilder builder) {
6691aff01de1 Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)
cin
parents: 277
diff changeset
12 builder.AddNamespace(Name);
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
13 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
14 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
15 }