When overriding SetParametersAsync, if I call any asynchronous method then I get the "Unhandled exception rendering component: The ParameterView instance can no longer be read because it has expired. ParameterView can only be read synchronously and must not be stored for later use."
public override async Task SetParametersAsync(ParameterView parameters)
{
await Task.Delay(1000);
await base.SetParametersAsync(parameters);
}
How can we safely call an async method in SetParamatersAsync?