Skip to content

Commit e0822cb

Browse files
author
Justin Skiles
authored
Merge pull request #76 from babelshift/chore/update-readme
Update samples based on interface factory
2 parents eb4dd3c + 5ae81a8 commit e0822cb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ Each method returns a SteamWebResponse object which contains the following:
5757
## Sample Usage
5858

5959
```cs
60+
// factory to be used to generate various web interfaces
61+
var webInterfaceFactory = new SteamWebInterfaceFactory(<dev api key here>);
62+
6063
// this will map to the ISteamUser endpoint
61-
var steamInterface = new SteamUser("<devKeyHere>");
64+
// note that you have full control over HttpClient lifecycle here
65+
var steamInterface = webInterfaceFactory.CreateSteamWebInterface<SteamUser>(new HttpClient());
6266

6367
// this will map to ISteamUser/GetPlayerSummaries method in the Steam Web API
6468
// see PlayerSummaryResultContainer.cs for response documentation

0 commit comments

Comments
 (0)