##// END OF EJS Templates
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)...
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete) Implab.ServiceHost: rewritten TypeReference (added support for nested types), stable API

File last commit:

r278:6691aff01de1 v3
r278:6691aff01de1 v3
Show More
DependencyParameterElement.cs
16 lines | 540 B | text/x-csharp | CSharpLexer
/ Implab.ServiceHost / Unity / DependencyParameterElement.cs
using System.Xml.Serialization;
namespace Implab.ServiceHost.Unity {
public class DependencyParameterElement : InjectionParameterElement {
[XmlAttribute("name")]
public string DependencyName { get; set; }
[XmlAttribute("optional")]
public bool Optional { get; set; }
public override void Visit(InjectionParameterBuilder builder) {
var type = builder.ResolveInjectedValueType(TypeName);
builder.SetDependencyReference(type, DependencyName, Optional);
}
}
}