Mercurial > pub > ImplabNet
comparison Implab.ServiceHost/Unity/AbstractRegistration.cs @ 271:d4d437ec4483 v3
Working on Unity xml configuration
author | cin |
---|---|
date | Wed, 25 Apr 2018 19:23:35 +0300 |
parents | ade80d94dfb5 |
children | 9d1cca834b05 |
comparison
equal
deleted
inserted
replaced
270:ade80d94dfb5 | 271:d4d437ec4483 |
---|---|
13 [XmlAttribute("name")] | 13 [XmlAttribute("name")] |
14 public string Name { | 14 public string Name { |
15 get; set; | 15 get; set; |
16 } | 16 } |
17 | 17 |
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> | |
27 [XmlAttribute("provides")] | |
28 public string ProvidesType { get; set; } | |
29 | |
18 public void Visit(ConfigurationContext context) { | 30 public void Visit(ConfigurationContext context) { |
19 context.Visit(this); | 31 context.Visit(this); |
20 } | 32 } |
21 } | 33 } |
22 } | 34 } |