Forum Discussion

gotters's avatar
gotters
Resolver I
2 years ago

Cant pass httpClientHandler to FabricClient

We currently use PowerBIClient from the SDK in our code to perform various operations. However we make sure to pass in our own httpClientHandler to avoid issues of socket exhaustion, like so...

var httpClientHandler = HttpClientFactory.GetHttpClientHandler();
return new PowerBIClient(new Uri(PbiBaseUrl), tokenCredentials, httpClientHandler)

We now have a need to use the FabricClient for a specific endpoint available there however it doesn't support passing in an httpClientHandler so we're stuck and concerned about how best to handle this.

 FabricClient(string token, Uri baseUrl = null)

 
Do we know if the FabricClient will be extended to support an httpClientHandler argument and if so, how soon?

Any other creative ideas in terms of handling this?

 

2 Replies