public async Task TestGetAppList() { var appList = await _steamClient.GetAppList(CancellationToken.None); var appIds = appList.Select(x => x.AppId).ToArray(); Assert.Contains(261820u, appIds); Assert.Contains(289650u, appIds); Assert.Contains(379720u, appIds); Assert.Contains(582890u, appIds); }
public SteamGameResponder(ILogger <SteamGameResponder> logger, ISteamClient steamClient) { _steamList = new Lazy <Task <IReadOnlyList <SteamAppSummary> > >(() => steamClient.GetAppList(CancellationToken.None)); _logger = logger; _steamClient = steamClient; }