Пример #1
0
        private async void series_seriseUpdatesButton_Click(object sender, EventArgs e)
        {
            SeriesUpdates api = new SeriesUpdates {
                ApiKey = apiKey
            };

            if (fredValidationButton.Checked)
            {
                api.Arguments.Validators.Clear();
            }
            SeriesUpdateContainer container = syncButton.Checked ? api.Fetch() : await api.FetchAsync();

            ShowResults(api);
        }
Пример #2
0
        /// <summary>
        /// Fetches data from a FRED service endpoint asynchronously.
        /// </summary>
        /// <returns>
        /// A <see cref="SeriesUpdateContainer"/> containing FRED data.
        /// An abnormal fetch returns null and a message is available in the <see cref="FetchMessage"/> property.
        /// </returns>
        public async Task <SeriesUpdateContainer> FetchAsync()
        {
            SeriesUpdateContainer result = await base.FetchAsync <SeriesUpdateContainer>();

            return(result);
        }
Пример #3
0
        /// <summary>
        /// Fetches data from a FRED service endpoint.
        /// </summary>
        /// <returns>
        /// A <see cref="SeriesUpdateContainer"/> containing FRED data.
        /// An abnormal fetch returns null and a message is available in the <see cref="FetchMessage"/> property.
        /// </returns>
        public SeriesUpdateContainer Fetch()
        {
            SeriesUpdateContainer result = base.Fetch <SeriesUpdateContainer>();

            return(result);
        }