public override async Task InitAsync() { using (var client = new HttpClient()) { var json = await client.GetStringAsync(Context.AbsoluteUrl("/api/SampleData/WeatherForecasts")); WeatherForecasts = JsonUtil.Deserialize <WeatherForecast[]>(json); } }
public override async Task InitAsync() { using (var client = new HttpClient()) { var json = await client.GetStringAsync(Context.AbsoluteUrl("/api/SampleData/WeatherForecasts")); WeatherForecasts = JsonUtil.Deserialize <WeatherForecast[]>(json); } }