RegistrationExtensionsInjectActionInvokerTLimit, TActivatorData, TRegistrationStyle Method (IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle, Service) |
Inject an IActionInvoker into the controller's ActionInvoker property.
Namespace:
Autofac.Integration.Mvc
Assembly:
Autofac.Integration.Mvc (in Autofac.Integration.Mvc.dll) Version: 6.0.0+106fe194fc419c09f32d39119967f68798cc6895
Syntax public static IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> InjectActionInvoker<TLimit, TActivatorData, TRegistrationStyle>(
this IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> registrationBuilder,
Service actionInvokerService
)
<ExtensionAttribute>
Public Shared Function InjectActionInvoker(Of TLimit, TActivatorData, TRegistrationStyle) (
registrationBuilder As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle),
actionInvokerService As Service
) As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle)
Parameters
- registrationBuilder
- Type: Autofac.BuilderIRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
The registration builder. - actionInvokerService
- Type: Autofac.CoreService
Service used to resolve the action invoker.
Type Parameters
- TLimit
- Limit type.
- TActivatorData
- Activator data.
- TRegistrationStyle
- Registration style.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TRegistrationStyleA registration builder.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IRegistrationBuilderTLimit,
TActivatorData,
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).
See Also