Click or drag to resize

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
)

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, TRegistrationStyle
A 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