@@ -265,43 +265,6 @@ public ApiClient(string basePath)
265265 _baseUrl = basePath ;
266266 }
267267
268- /// <summary>
269- /// Initializes a new instance of the <see cref="ApiClient" />, defaulting to the global configurations' base url.
270- /// </summary>
271- /// <param name="client">An instance of HttpClient.</param>
272- /// <param name="handler">An optional instance of HttpClientHandler that is used by HttpClient.</param>
273- /// <exception cref="ArgumentNullException"></exception>
274- /// <remarks>
275- /// Some configuration settings will not be applied without passing an HttpClientHandler.
276- /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
277- /// </remarks>
278- public ApiClient ( HttpClient client , HttpClientHandler handler = null ) :
279- this ( client , Xero . NetStandard . OAuth2 . Client . GlobalConfiguration . Instance . BasePath , handler )
280- {
281- }
282-
283- /// <summary>
284- /// Initializes a new instance of the <see cref="ApiClient" />.
285- /// </summary>
286- /// <param name="client">An instance of HttpClient.</param>
287- /// <param name="basePath">The target service's base path in URL format.</param>
288- /// <param name="handler">An optional instance of HttpClientHandler that is used by HttpClient.</param>
289- /// <exception cref="ArgumentNullException"></exception>
290- /// <exception cref="ArgumentException"></exception>
291- /// <remarks>
292- /// Some configuration settings will not be applied without passing an HttpClientHandler.
293- /// The features affected are: Setting and Retrieving Cookies, Client Certificates, Proxy settings.
294- /// </remarks>
295- public ApiClient ( HttpClient client , string basePath , HttpClientHandler handler = null )
296- {
297- if ( client == null ) throw new ArgumentNullException ( "client cannot be null" ) ;
298- if ( string . IsNullOrEmpty ( basePath ) ) throw new ArgumentException ( "basePath cannot be empty" ) ;
299-
300- _httpClientHandler = handler ;
301- _httpClient = client ;
302- _baseUrl = basePath ;
303- }
304-
305268 /// <summary>
306269 /// Disposes resources if they were created by us
307270 /// </summary>
0 commit comments