I've decided to migrate from Microsoft.Azure.Search 3.0.5 to Azure.Search.Documents, I've done everything according to a migration guide, but I couldn't find an alternative for DelegatingHandler in SeachClient ctor.
Previously I initialized SearchIndexClient with DelegatingHandler as a parameter to handle any errors, but the new Azure.Search.Documents.SearchClient doesn't accept DelegatingHandler[] as a parameter, what is an alternative way to do that?
Platform: .Net framework
What I Tried: I tried to use different versions of Azure.Documents.Search and asked Azure team - https://github.com/MicrosoftDocs/azure-docs/issues/117377
Creating a custom
HttpClient
with a customHttpClientHandler
and using it for HTTP operations outside theSearchClient
.SearchClient
without a customDelegatingHandler