RegistrationBuilderForDelegate Method (Type, FuncIComponentContext, IEnumerableParameter, Object) |
Creates a registration builder for the provided delegate.
Namespace:
Autofac.Builder
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax public static IRegistrationBuilder<Object, SimpleActivatorData, SingleRegistrationStyle> ForDelegate(
Type limitType,
Func<IComponentContext, IEnumerable<Parameter>, Object> delegate
)
Public Shared Function ForDelegate (
limitType As Type,
delegate As Func(Of IComponentContext, IEnumerable(Of Parameter), Object)
) As IRegistrationBuilder(Of Object, SimpleActivatorData, SingleRegistrationStyle)
Parameters
- limitType
- Type: SystemType
Most specific type return value of delegate can be cast to. - delegate
- Type: SystemFuncIComponentContext, IEnumerableParameter, Object
Delegate to register.
Return Value
Type:
IRegistrationBuilderObject,
SimpleActivatorData,
SingleRegistrationStyleA registration builder.
See Also