Add maxcount parameter to SteamDirectory.LoadAsync#577
Conversation
…servers. Keep existing methods for sourcecompat/bincompat.
|
No |
|
|
||
| if ( maxNumServers.HasValue ) | ||
| { | ||
| args[ "maxcount" ] = maxNumServers.Value.ToString(CultureInfo.InvariantCulture); |
Codecov Report
@@ Coverage Diff @@
## master #577 +/- ##
==========================================
+ Coverage 22.12% 22.12% +<.01%
==========================================
Files 86 86
Lines 8666 8655 -11
Branches 714 715 +1
==========================================
- Hits 1917 1915 -2
+ Misses 6624 6613 -11
- Partials 125 127 +2
Continue to review full report at Codecov.
|
|
I did consider it, but with C# 7.1 you can easily call |
|
|
||
| var task = directory.CallAsync( HttpMethod.Get, "GetCMList", version: 1, args: args ); | ||
| return task.ContinueWith( t => | ||
| var response = await directory.CallAsync( HttpMethod.Get, "GetCMList", version: 1, args: args ).ConfigureAwait( false ); |
There was a problem hiding this comment.
Shame we can't pass the cancellation token further. Maybe worth expanding WebAPI's AsyncInterface someday.

Closes #560.
cc @xPaw