@@ -24,8 +24,8 @@ public class SearchClient
2424 /// </summary>
2525 /// <param name="baseUri">The URL to the root of the service</param>
2626 /// <param name="handlers">Handlers to apply to the request in order from first to last</param>
27- public SearchClient ( Uri baseUri , params DelegatingHandler [ ] handlers )
28- : this ( baseUri , "SearchGalleryQueryService/3.0.0-rc" , null , new BaseUrlHealthIndicatorStore ( new NullHealthIndicatorLogger ( ) ) , handlers )
27+ public SearchClient ( Uri baseUri , Action < Exception > onException , params DelegatingHandler [ ] handlers )
28+ : this ( baseUri , "SearchGalleryQueryService/3.0.0-rc" , null , new BaseUrlHealthIndicatorStore ( new NullHealthIndicatorLogger ( ) ) , onException , handlers )
2929 {
3030 }
3131
@@ -37,7 +37,7 @@ public SearchClient(Uri baseUri, params DelegatingHandler[] handlers)
3737 /// <param name="credentials">The credentials to connect to the service with</param>
3838 /// <param name="healthIndicatorStore">Health indicator store</param>
3939 /// <param name="handlers">Handlers to apply to the request in order from first to last</param>
40- public SearchClient ( Uri baseUri , string resourceType , ICredentials credentials , IEndpointHealthIndicatorStore healthIndicatorStore , params DelegatingHandler [ ] handlers )
40+ public SearchClient ( Uri baseUri , string resourceType , ICredentials credentials , IEndpointHealthIndicatorStore healthIndicatorStore , Action < Exception > onException , params DelegatingHandler [ ] handlers )
4141 {
4242 _resourceType = resourceType ;
4343
@@ -57,7 +57,7 @@ public SearchClient(Uri baseUri, string resourceType, ICredentials credentials,
5757
5858 _httpClient = new HttpClient ( handler , disposeHandler : true ) ;
5959
60- _retryingHttpClientWrapper = new RetryingHttpClientWrapper ( _httpClient , healthIndicatorStore ) ;
60+ _retryingHttpClientWrapper = new RetryingHttpClientWrapper ( _httpClient , healthIndicatorStore , onException ) ;
6161 _discoveryClient = new ServiceDiscoveryClient ( _httpClient , baseUri ) ;
6262 }
6363
0 commit comments