ProvidesElement.cs
16 lines
| 605 B
| text/x-csharp
|
CSharpLexer
cin
|
r289 | using System.Xml.Serialization; | |
namespace Implab.ServiceHost.Unity { | |||
public class ProvidesElement { | |||
[XmlAttribute("type")] | |||
public string RegistrationType { get; set; } | |||
[XmlAttribute("name")] | |||
public string RegistrationName { get; set; } | |||
cin
|
r295 | [XmlElement("singleton", typeof(SingletonLifetimeElement))] | |
cin
|
r289 | [XmlElement("context", typeof(ContextLifetimeElement))] | |
[XmlElement("container", typeof(ContainerLifetimeElement))] | |||
[XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))] | |||
public LifetimeElement Lifetime {get; set;} | |||
} | |||
} |