annotate Implab.ServiceHost/Unity/IncludeElement.cs @ 269:ff581cff7003 v3

Working on Unity container xml configuration
author cin
date Tue, 24 Apr 2018 01:46:02 +0300
parents
children ade80d94dfb5
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 [XmlRoot("include", Namespace = Schema.ContainerConfigurationNamespace)]
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
5 public class IncludeElement : IConfigurationElement {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
6 [XmlAttribute("href")]
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
7 public string Href { get; set; }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
8
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
9 public void Visit(ConfigurationContext context) {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
10 context.Include(Href);
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
11 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
12 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
13 }