Mercurial > pub > ImplabNet
annotate Implab.ServiceHost/Unity/AbstractRegistration.cs @ 275:6fefd5811b9b v3
refactoring
author | cin |
---|---|
date | Fri, 27 Apr 2018 16:57:30 +0300 |
parents | 22629bf26121 |
children | 963b17c275be |
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 { | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
8 public abstract class AbstractRegistration : ContainerItemElement { |
269 | 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 | |
271 | 18 [XmlElement("signleton", typeof(SimgletonLifetimeElement))] |
19 [XmlElement("context", typeof(ContextLifetimeElement))] | |
20 [XmlElement("container", typeof(ContainerLifetimeElement))] | |
21 [XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))] | |
22 public LifetimeElement Lifetime {get; set;} | |
23 | |
24 /// <summary> | |
25 /// A type specification for the service registration, | |
26 /// </summary> | |
273
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
27 [XmlAttribute("type")] |
79110a16cab7
Working on Unity xml configuration: Refactoring in progress
cin
parents:
272
diff
changeset
|
28 public string RegistrationType { get; set; } |
271 | 29 |
269 | 30 } |
31 } |