DependencyParameterElement.cs
15 lines
| 438 B
| text/x-csharp
|
CSharpLexer
cin
|
r272 | 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; } | |||
internal override object Resolve(RegistrationContext context) { | |||
return context.Resolve(this); | |||
} | |||
cin
|
r270 | } | |
} |