public Dictionary <long, string> GetAllSteamApps() { if (_allSteamApps != null && _allSteamAppsCachedOn != null && _allSteamAppsCachedOn > DateTime.Now.AddDays(-1)) { return(_allSteamApps); } SteamApiClient steamApiClient = _serviceProvider.GetService <SteamApiClient>(); _allSteamApps = steamApiClient.GetAppList(); _allSteamAppsCachedOn = DateTime.Now; return(_allSteamApps); }