##// END OF EJS Templates
Added Trace<T>.Debug(...) method for debug messages...
Added Trace<T>.Debug(...) method for debug messages Added ContainerBuilde.LoadConfig(Uri) method

File last commit:

r278:6691aff01de1 v3
r280:f07be402ab02 v3
Show More
ValueParameterElement.cs
20 lines | 670 B | text/x-csharp | CSharpLexer
cin
Refactoring...
r277 using System.ComponentModel;
cin
preview version of Unity xml configuration
r272 using System.Xml.Serialization;
cin
Unity xml configuration, alpha2
r274 namespace Implab.ServiceHost.Unity {
cin
Refactoring...
r277 public class ValueParameterElement : InjectionParameterElement {
cin
Working on Unity xml configuration: Refactoring in progress
r273 [XmlAttribute("value")]
cin
preview version of Unity xml configuration
r272 public string Value { get; set; }
cin
Refactoring...
r277 [XmlText]
public string Text { get; set; }
string GetTextValue() {
return string.IsNullOrEmpty(Value) ? Text : Value;
}
cin
Implab: added XmlDefaultSeializer (SerializersPool is now obsolete)...
r278 public override void Visit(InjectionParameterBuilder builder) {
cin
Refactoring...
r277 var type = builder.ResolveInjectedValueType(TypeName);
builder.SetValue(type, TypeDescriptor.GetConverter(type).ConvertFromString(GetTextValue()));
cin
preview version of Unity xml configuration
r272 }
cin
Working on Unity container xml configuration
r270 }
}