Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/AbstractRegistration.cs @ 270:ade80d94dfb5 v3
Working on Unity container xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 04:44:40 +0300 |
parents | ff581cff7003 |
children | d4d437ec4483 |
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) { | |
270 | 19 context.Visit(this); |
269 | 20 } |
21 } | |
22 } |