コード例 #1
0
        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);
        }
コード例 #2
0
 public SteamGameResponder(ILogger <SteamGameResponder> logger, ISteamClient steamClient)
 {
     _steamList   = new Lazy <Task <IReadOnlyList <SteamAppSummary> > >(() => steamClient.GetAppList(CancellationToken.None));
     _logger      = logger;
     _steamClient = steamClient;
 }