Click or drag to resize

RegistrationBuilderForDelegateT Method (FuncIComponentContext, IEnumerableParameter, T)

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<T, SimpleActivatorData, SingleRegistrationStyle> ForDelegate<T>(
	Func<IComponentContext, IEnumerable<Parameter>, T> delegate
)

Parameters

delegate
Type: SystemFuncIComponentContext, IEnumerableParameter, T
Delegate to register.

Type Parameters

T
Instance type returned by delegate.

Return Value

Type: IRegistrationBuilderT, SimpleActivatorData, SingleRegistrationStyle
A registration builder.
See Also