RegistrationExtensionsInterceptedByTLimit, TActivatorData, TStyle Method (IRegistrationBuilderTLimit, TActivatorData, TStyle, Service) |
Allows a list of interceptor services to be assigned to the registration.
Namespace:
Autofac.Extras.DynamicProxy
Assembly:
Autofac.Extras.DynamicProxy (in Autofac.Extras.DynamicProxy.dll) Version: 6.0.0+d14b34a0bec59c4984cd6167bf2f3e37fb6e1002
Syntax public static IRegistrationBuilder<TLimit, TActivatorData, TStyle> InterceptedBy<TLimit, TActivatorData, TStyle>(
this IRegistrationBuilder<TLimit, TActivatorData, TStyle> builder,
params Service[] interceptorServices
)
<ExtensionAttribute>
Public Shared Function InterceptedBy(Of TLimit, TActivatorData, TStyle) (
builder As IRegistrationBuilder(Of TLimit, TActivatorData, TStyle),
ParamArray interceptorServices As Service()
) As IRegistrationBuilder(Of TLimit, TActivatorData, TStyle)
Parameters
- builder
- Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TStyle
Registration to apply interception to. - interceptorServices
- Type: Autofac.CoreService
The interceptor services.
Type Parameters
- TLimit
- Registration limit type.
- TActivatorData
- Activator data type.
- TStyle
- Registration style.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TStyleRegistration 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,
TActivatorData,
TStyle. 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 See Also