Exemplo n.º 1
0
        private async void series_seriesButton_Click(object sender, EventArgs e)
        {
            Series api = new Series {
                ApiKey = apiKey
            };

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

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

            return(result);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Fetches data from a FRED service endpoint.
        /// </summary>
        /// <returns>
        /// A <see cref="SingleSeriesContainer"/> containing FRED data.
        /// An abnormal fetch returns null and a message is available in the <see cref="FetchMessage"/> property.
        /// </returns>
        public SingleSeriesContainer Fetch()
        {
            SingleSeriesContainer result = base.Fetch <SingleSeriesContainer>();

            return(result);
        }