ParameterFilterAttributeResolveParameter Method |
Implemented in derived classes to resolve a specific parameter marked with
this attribute.
Namespace:
Autofac.Extras.AttributeMetadata
Assembly:
Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax public abstract Object ResolveParameter(
ParameterInfo parameter,
IComponentContext context
)
Public MustOverride Function ResolveParameter (
parameter As ParameterInfo,
context As IComponentContext
) As Object
Parameters
- parameter
- Type: System.ReflectionParameterInfo
The specific parameter being resolved that is marked with this attribute. - context
- Type: AutofacIComponentContext
The component context under which the parameter is being resolved.
Return Value
Type:
ObjectThe instance of the object that should be used for the parameter value.
See Also