Method OnInitializedAsync
OnInitializedAsync(IServiceProvider)
Called after the IServiceProvider has been fully constructed and assigned to the control. This phase is appropriate for resolving services, accessing runtime state, and performing post-configuration logic.
Declaration
public virtual Task OnInitializedAsync(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The final DI container built for the Blazor control. |
Returns
Type | Description |
---|---|
Task | A task that completes when post-initialization is complete. |