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
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;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
2 using System.Xml.Serialization;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
3 using Unity.Lifetime;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
4 using Unity.Registration;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
5
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
6 namespace Implab.ServiceHost.Unity
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
7 {
273
79110a16cab7 Working on Unity xml configuration: Refactoring in progress
cin
parents: 272
diff changeset
8 public abstract class AbstractRegistration : ContainerItemElement {
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
9
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
10 /// <summary>
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
11 /// An optional name for a registration in the container
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
12 /// </summary>
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
13 [XmlAttribute("name")]
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
14 public string Name {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
15 get; set;
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
16 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
17
271
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
18 [XmlElement("signleton", typeof(SimgletonLifetimeElement))]
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
19 [XmlElement("context", typeof(ContextLifetimeElement))]
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
20 [XmlElement("container", typeof(ContainerLifetimeElement))]
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
21 [XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))]
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
22 public LifetimeElement Lifetime {get; set;}
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
23
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
24 /// <summary>
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
25 /// A type specification for the service registration,
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
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
d4d437ec4483 Working on Unity xml configuration
cin
parents: 270
diff changeset
29
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
30 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
31 }