Click or drag to resize

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
)

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, SingleRegistrationStyle
A registration builder.
See Also