/// <summary> /// Initializes a new instance of the <see cref="WorldGeocoder"/> class. /// </summary> /// <param name="serviceInfo">The geocoding service configuration information.</param> /// <param name="client">The geocoding service client object.</param> /// <exception cref="System.ArgumentNullException"><paramref name="serviceInfo"/> or /// <paramref name="client"/> is a null reference.</exception> public WorldGeocoder( GeocodingServiceInfo serviceInfo, IGeocodingServiceClient client) { CodeContract.RequiresNotNull("serviceInfo", serviceInfo); CodeContract.RequiresNotNull("client", client); _serviceInfo = serviceInfo; _client = client; _client.ReverseGeocodeCompleted += _ClientReverseGeocodeCompleted; _locatorsInfos = new ReadOnlyCollection <LocatorInfo>(new List <LocatorInfo>()); }
/// <summary> /// Initializes a new instance of the <see cref="WorldGeocoder"/> class. /// </summary> /// <param name="serviceInfo">The geocoding service configuration information.</param> /// <param name="client">The geocoding service client object.</param> /// <exception cref="System.ArgumentNullException"><paramref name="serviceInfo"/> or /// <paramref name="client"/> is a null reference.</exception> public WorldGeocoder( GeocodingServiceInfo serviceInfo, IGeocodingServiceClient client) { CodeContract.RequiresNotNull("serviceInfo", serviceInfo); CodeContract.RequiresNotNull("client", client); _serviceInfo = serviceInfo; _client = client; _client.ReverseGeocodeCompleted += _ClientReverseGeocodeCompleted; _locatorsInfos = new ReadOnlyCollection<LocatorInfo>(new List<LocatorInfo>()); }