IRegistrationBuilderTLimit, TActivatorData, TRegistrationStyleOnActivated Method (FuncIActivatedEventArgsTLimit, ValueTask) |
Add a handler for the Activated event.
Namespace:
Autofac.Builder
Assembly:
Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax IRegistrationBuilder<TLimit, TActivatorData, TRegistrationStyle> OnActivated(
Func<IActivatedEventArgs<TLimit>, ValueTask> handler
)
Function OnActivated (
handler As Func(Of IActivatedEventArgs(Of TLimit), ValueTask)
) As IRegistrationBuilder(Of TLimit, TActivatorData, TRegistrationStyle)
Parameters
- handler
- Type: SystemFuncIActivatedEventArgsTLimit, ValueTask
An event handler; the resolve process will not continue until the returned task completes.
Return Value
Type:
IRegistrationBuilderTLimit,
TActivatorData,
TRegistrationStyleA registration builder allowing further configuration of the component.
See Also