The Introduction to ASP.NET Core Blazor article by Microsoft (Daniel Roth and Luke Latham) show examples of awaited calls in the Razor Code, e.g.
@code {
private WeatherForecast[] forecasts;
protected override async Task OnInitializedAsync()
{
forecasts = await ForecastService.GetForecastAsync(DateTime.Now);
}
}
However, none of the examples suggest whether the razor pages should continue on the captured context, or not, e.g.
.ConfigureAwait(false);
or
.ConfigureAwait(true);
Does Blazor have the concept of the UI Thread being the only thread able to update components? What is considered "best practice" when calling awaited calls in the Page and/or in page components.