##// END OF EJS Templates
Working on Unity xml configuration
Working on Unity xml configuration

File last commit:

r267:6b3e5c48131b v3
r267:6b3e5c48131b v3
Show More
ServiceElement.cs
27 lines | 884 B | text/x-csharp | CSharpLexer
using System;
using System.Xml.Serialization;
namespace Implab.ServiceHost.Unity {
[XmlRoot("register", Namespace = Schema.ContainerConfigurationNamespace)]
public class ServiceElement {
/// <summary>
/// An optional name for a registration in the container
/// </summary>
[XmlAttribute("name")]
public string Name { get; set; }
/// <summary>
/// An optional type specification for the service registration,
/// must be assignable from the type specified by <see cref="ImplementedType"/>
/// </summary>
[XmlAttribute("provides")]
public string ProvidesType { get; set; }
/// <summary>
/// The type which is registered as a service in the container.
/// </summary>
[XmlAttribute("type")]
public string ImplementedType { get; set; }
}
}