public static async Task<ServerActualInformation> TryToGetCurrentInformationAsync(string ip, int portC) {
var steamId = SteamIdHelper.Instance.Value ?? @"-1";
var requestUri = $"http://{ip}:{portC}/JSON|{steamId}";
try {
return JsonConvert.DeserializeObject<ServerActualInformation>(await LoadAsync(requestUri));
} catch (WebException e) {
Logging.Warning($"Cannot get server information: {requestUri}, {e.Message}");
return null;
} catch (Exception e) {
Logging.Warning($"Cannot get actual server information: {requestUri}\n{e}");
return null;
}
}