##// END OF EJS Templates
preview version of Unity xml configuration
preview version of Unity xml configuration

File last commit:

r272:9d1cca834b05 v3
r272:9d1cca834b05 v3
Show More
AbstractRegistration.cs
31 lines | 1000 B | text/x-csharp | CSharpLexer
cin
Working on Unity container xml configuration
r269 using System;
using System.Xml.Serialization;
using Unity.Lifetime;
using Unity.Registration;
namespace Implab.ServiceHost.Unity
{
public abstract class AbstractRegistration : IConfigurationElement {
/// <summary>
/// An optional name for a registration in the container
/// </summary>
[XmlAttribute("name")]
public string Name {
get; set;
}
cin
Working on Unity xml configuration
r271 [XmlElement("signleton", typeof(SimgletonLifetimeElement))]
[XmlElement("context", typeof(ContextLifetimeElement))]
[XmlElement("container", typeof(ContainerLifetimeElement))]
[XmlElement("hierarchy", typeof(HierarchicalLifetimeElement))]
public LifetimeElement Lifetime {get; set;}
/// <summary>
/// A type specification for the service registration,
/// </summary>
[XmlAttribute("provides")]
public string ProvidesType { get; set; }
cin
preview version of Unity xml configuration
r272 public abstract void Visit(ConfigurationContext context);
cin
Working on Unity container xml configuration
r269 }
}