KeyFilterAttributeCanResolveParameter Method |
Checks a constructor parameter can be resolved based on keyed service requirements.
Namespace:
Autofac.Features.AttributeFilters
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public override bool CanResolveParameter(
ParameterInfo parameter,
IComponentContext context
)
Public Overrides Function CanResolveParameter (
parameter As ParameterInfo,
context As IComponentContext
) As Boolean
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:
Booleantrue if parameter can be resolved; otherwise, false.
See Also