InjectionParameterElement.cs
15 lines
| 447 B
| text/x-csharp
|
CSharpLexer
cin
|
r273 | using System; | |
cin
|
r270 | using System.Xml.Serialization; | |
namespace Implab.ServiceHost.Unity { | |||
cin
|
r272 | public abstract class InjectionParameterElement { | |
cin
|
r270 | ||
[XmlAttribute("type")] | |||
public string TypeName { get; set; } | |||
cin
|
r272 | ||
cin
|
r273 | internal abstract object Resolve(InjectionValueContext context); | |
public virtual Type ResolveParameterType(InjectionValueContext context) { | |||
return context.ResolveType(TypeName); | |||
} | |||
cin
|
r270 | } | |
} |