You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Cached it!// See https://learn.microsoft.com/dotnet/api/system.net.http.httpclient.-ctor?view=net-8.0#remarksHttpClientclient=new();// TODO: make it async.varinfos= client.GetFromJsonAsync<Dictionary<string,int>>("http://api.cncnet.org/status").Result;if(!infos.TryGetValue(cncnetLiveStatusIdentifier,outint numGames))numGames=-1;returnnumGames;
SYSLIB0014 - Microsoft Learn
Add System.Net.Http.Json package to polyfill
GetFromJsonAsync
methods.like this:
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/CnCNetPlayerCountTask.cs
Lines 53 to 80 in f89c8fc
TODO
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/CnCNetPlayerCountTask.cs
Line 53 in f89c8fc
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/CnCNetTunnel.cs
Line 101 in 3a2dac0
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/ExtendedWebClient.cs
Line 9 in d7e370a
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/MapSharer.cs
Line 381 in 6ff904f
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/MapSharer.cs
Line 209 in 6ff904f
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/MapSharer.cs
Line 446 in 6ff904f
xna-cncnet-client/DXMainClient/Domain/Multiplayer/CnCNet/TunnelHandler.cs
Line 156 in f89c8fc
The text was updated successfully, but these errors were encountered: