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
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 {
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
8 public abstract class AbstractRegistration : IConfigurationElement {
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
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
18 public void Visit(ConfigurationContext context) {
270
ade80d94dfb5 Working on Unity container xml configuration
cin
parents: 269
diff changeset
19 context.Visit(this);
269
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
20 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
21 }
ff581cff7003 Working on Unity container xml configuration
cin
parents:
diff changeset
22 }