private async void tags_tagsSeriesButton_Click(object sender, EventArgs e) { TagsSeries api = new TagsSeries() { ApiKey = apiKey }; api.Arguments.tag_names = "slovenia;food;oecd"; if (fredValidationButton.Checked) { api.Arguments.Validators.Clear(); } TagSeriesContainer container = syncButton.Checked ? api.Fetch() : await api.FetchAsync(); ShowResults(api); }
/// <summary> /// Fetches data from a FRED service endpoint asynchronously. /// </summary> /// <returns> /// A <see cref="TagSeriesContainer"/> containing FRED data. /// An abnormal fetch returns null and a message is available in the <see cref="FetchMessage"/> property. /// </returns> public async Task <TagSeriesContainer> FetchAsync() { TagSeriesContainer result = await base.FetchAsync <TagSeriesContainer>(); return(result); }
/// <summary> /// Fetches data from a FRED service endpoint. /// </summary> /// <returns> /// A <see cref="TagSeriesContainer"/> containing FRED data. /// An abnormal fetch returns null and a message is available in the <see cref="FetchMessage"/> property. /// </returns> public TagSeriesContainer Fetch() { TagSeriesContainer result = base.Fetch <TagSeriesContainer>(); return(result); }