Rewrite the network stack and provide the option to pass an HttpClient instance into functions that execute a network requests. The parameter is optional and uses the default NetworkHelper object in the SDK if not passed by the user. The user also has the option to configure the client in NetworkHelper.
What does it do?
Add optional parameter of HttpClient to all methods that execute network requests
Fix broken test cases
Motivation and Context
Better testability
Reduce potential issues with concurrent network requests
Rewrite the network stack and provide the option to pass an
HttpClient
instance into functions that execute a network requests. The parameter is optional and uses the defaultNetworkHelper
object in the SDK if not passed by the user. The user also has the option to configure the client inNetworkHelper
.What does it do?
HttpClient
to all methods that execute network requestsMotivation and Context