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
)
Public Shared Function ForDelegate(Of T) (
delegate As Func(Of IComponentContext, IEnumerable(Of Parameter), T)
) As IRegistrationBuilder(Of T, SimpleActivatorData, SingleRegistrationStyle)
Parameters
- delegate
- Type: SystemFuncIComponentContext, IEnumerableParameter, T
Delegate to register.
Type Parameters
- T
- Instance type returned by delegate.
Return Value
Type:
IRegistrationBuilderT,
SimpleActivatorData,
SingleRegistrationStyleA registration builder.
See Also