Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/AbstractRegistration.cs @ 269:ff581cff7003 v3
Working on Unity container xml configuration
author | cin |
---|---|
date | Tue, 24 Apr 2018 01:46:02 +0300 |
parents | |
children | ade80d94dfb5 |
rev | line source |
---|---|
269 | 1 using System; |
2 using System.Xml.Serialization; | |
3 using Unity.Lifetime; | |
4 using Unity.Registration; | |
5 | |
6 namespace Implab.ServiceHost.Unity | |
7 { | |
8 public abstract class AbstractRegistration : IConfigurationElement { | |
9 | |
10 /// <summary> | |
11 /// An optional name for a registration in the container | |
12 /// </summary> | |
13 [XmlAttribute("name")] | |
14 public string Name { | |
15 get; set; | |
16 } | |
17 | |
18 public void Visit(ConfigurationContext context) { | |
19 context.Visist(this); | |
20 } | |
21 } | |
22 } |