Exemplo n.º 1
0
        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);
            }
        }