Example #1
0
        /// <summary>Gets the next DateTime the API can be safely-queried.</summary>
        /// <param name="apiName">The name of the API to query.</param>
        /// <returns>When the API can be safely-queried.</returns>
        public static DateTime GetNextQueryTime(string apiName)
        {
            apiName = apiName.Trim().ToLower();

            if (!APIRegistry.IsRegisteredAPIName(apiName))
            {
                throw new Exception("API '" + apiName + "' not defined in API Registry!");
            }

            return(apiInfoStore[apiName].GetNextQueryTime());
        }