/// <summary>
        /// Initializes a new instance of the <see cref="GeocodeProviderBase"/> class.
        /// </summary>
        /// <param name="cache">
        /// The cache.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Throws an <see cref="ArgumentNullException"/> if the cache parameter is omitted
        /// </exception>
        protected GeocodeProviderBase(IRuntimeCacheProvider cache)
        {
            if (cache == null) throw new ArgumentNullException("cache");

            _cache = cache;

            _settings = new GeocodeProviderSettings(GetType());
        }
Example #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeocodeProviderBase"/> class.
        /// </summary>
        /// <param name="cache">
        /// The cache.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Throws an <see cref="ArgumentNullException"/> if the cache parameter is omitted
        /// </exception>
        protected GeocodeProviderBase(IRuntimeCacheProvider cache)
        {
            if (cache == null)
            {
                throw new ArgumentNullException("cache");
            }

            _cache = cache;

            _settings = new GeocodeProviderSettings(GetType());
        }