DependencyParameterElement.cs
15 lines
| 448 B
| text/x-csharp
|
CSharpLexer
cin
|
r272 | using System.Xml.Serialization; | |
namespace Implab.ServiceHost.Unity { | |||
cin
|
r274 | public class DependencyParameterElement : InjectionParameterElement, IDependencyReference { | |
cin
|
r272 | ||
[XmlAttribute("name")] | |||
public string DependencyName { get; set; } | |||
[XmlAttribute("optional")] | |||
public bool Optional { get; set; } | |||
cin
|
r274 | ||
cin
|
r275 | public override void Visit(InjectionValueBuilder builder) { | |
cin
|
r274 | builder.Visit(this); | |
} | |||
cin
|
r270 | } | |
} |