/// <summary> /// Initializes a new instance of the <see cref="PlacesAutocomplete"/> class. /// </summary> /// <param name="apikey"> The google api key. </param> public PlacesAutocomplete(string apikey) { this.authConfig = new PlacesConfig(apikey); this.httpProvider = new PlacesHttpProvider(authConfig); }
/// <summary> /// Initializes a new instance of the <see cref="PlacesHttpProvider"/> class. /// </summary> /// <param name="config"> A PlacesConfig instance. </param> public PlacesHttpProvider(PlacesConfig config) { this.client = new HttpClient(); this.authConfig = config; }