We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents eb4dd3c + 5ae81a8 commit e0822cbCopy full SHA for e0822cb
1 file changed
README.md
@@ -57,8 +57,12 @@ Each method returns a SteamWebResponse object which contains the following:
57
## Sample Usage
58
59
```cs
60
+// factory to be used to generate various web interfaces
61
+var webInterfaceFactory = new SteamWebInterfaceFactory(<dev api key here>);
62
+
63
// this will map to the ISteamUser endpoint
-var steamInterface = new SteamUser("<devKeyHere>");
64
+// note that you have full control over HttpClient lifecycle here
65
+var steamInterface = webInterfaceFactory.CreateSteamWebInterface<SteamUser>(new HttpClient());
66
67
// this will map to ISteamUser/GetPlayerSummaries method in the Steam Web API
68
// see PlayerSummaryResultContainer.cs for response documentation
0 commit comments