comparison Implab.ServiceHost/Unity/DependencyParameterElement.cs @ 272:9d1cca834b05 v3

preview version of Unity xml configuration
author cin
date Thu, 26 Apr 2018 03:14:54 +0300
parents ade80d94dfb5
children 79110a16cab7
comparison
equal deleted inserted replaced
271:d4d437ec4483 272:9d1cca834b05
1 namespace Implab.ServiceHost.Unity 1 using System.Xml.Serialization;
2 { 2
3 public class DependencyParameterElement : InjectionParameterElement 3 namespace Implab.ServiceHost.Unity {
4 { 4 public class DependencyParameterElement : InjectionParameterElement {
5 5
6 [XmlAttribute("name")]
7 public string DependencyName { get; set; }
8
9 [XmlAttribute("optional")]
10 public bool Optional { get; set; }
11
12 internal override object Resolve(RegistrationContext context) {
13 return context.Resolve(this);
14 }
6 } 15 }
7 } 16 }