-
Notifications
You must be signed in to change notification settings - Fork 44
Custom HttpClient
Justin Skiles edited this page Apr 16, 2020
·
6 revisions
When constructing an interface from an interface factory, you can provide an instance to your own HttpClient. This allows you to maintain the lifetime of your HttpClient instances and provide customization unique to your scenarios.
If you don't provide your own HttpClient, the library will create a new one on each request.
HttpClient client = new HttpClient();
var steamUserInterface = webInterfaceFactory.CreateSteamWebInterface<SteamUser>(client);