AutofacAttributeExtensionsWithAttributeFilterTLimit, TReflectionActivatorData, TRegistrationStyle Method |
Note: This API is now obsolete.
Applies attribute-based filtering on constructor dependencies for use with attributes
derived from the
ParameterFilterAttribute.
Namespace:
Autofac.Extras.AttributeMetadata
Assembly:
Autofac.Extras.AttributeMetadata (in Autofac.Extras.AttributeMetadata.dll) Version: 6.0.0+9ca59cfaf8ca9a019932258d79b859bcf16e8ed2
Syntax [ObsoleteAttribute("Use Autofac.Features.AttributeFilters.RegistrationExtensions.WithAttributeFiltering from the core Autofac library instead.")]
public static IRegistrationBuilder<TLimit, TReflectionActivatorData, TRegistrationStyle> WithAttributeFilter<TLimit, TReflectionActivatorData, TRegistrationStyle>(
this IRegistrationBuilder<TLimit, TReflectionActivatorData, TRegistrationStyle> builder
)
where TReflectionActivatorData : ReflectionActivatorData
<ExtensionAttribute>
<ObsoleteAttribute("Use Autofac.Features.AttributeFilters.RegistrationExtensions.WithAttributeFiltering from the core Autofac library instead.")>
Public Shared Function WithAttributeFilter(Of TLimit, TReflectionActivatorData As ReflectionActivatorData, TRegistrationStyle) (
builder As IRegistrationBuilder(Of TLimit, TReflectionActivatorData, TRegistrationStyle)
) As IRegistrationBuilder(Of TLimit, TReflectionActivatorData, TRegistrationStyle)
Parameters
- builder
- Type: Autofac.BuilderIRegistrationBuilderTLimit, TReflectionActivatorData, TRegistrationStyle
The registration builder containing registration data.
Type Parameters
- TLimit
- The type of the registration limit.
- TReflectionActivatorData
- Activator data type.
- TRegistrationStyle
- Registration style type.
Return Value
Type:
IRegistrationBuilderTLimit,
TReflectionActivatorData,
TRegistrationStyleRegistration builder allowing the registration to be configured.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRegistrationBuilderTLimit,
TReflectionActivatorData,
TRegistrationStyle. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks See Also