Click or drag to resize

IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleOnActivating Method (FuncIActivatingEventArgsTLimit, ValueTask)

Add an async handler for the Activating event.

Namespace:  Autofac.Builder
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> OnActivating(
	Func<IActivatingEventArgs<TLimit>, ValueTask> handler
)

Parameters

handler
Type: SystemFuncIActivatingEventArgsTLimit, ValueTask
An event handler; the resolve process will not continue until the returned task completes.

Return Value

Type: IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyle
A registration builder allowing further configuration of the component.
See Also