Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
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?
Hi @gotters ,
This is the related document, you can view this content:
Injecting HttpClient into PowerBIClient - Microsoft Fabric Community
c# - How to pass HttpClientHandler to existing HttpClient? - Stack Overflow
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Those are for PowerBiClient, do you know if they will work with the FabricClient which seems to have a different architecture
User | Count |
---|---|
10 | |
4 | |
3 | |
3 | |
3 |