Пример #1
0
 public Steam(ISteamInfo steamApi, ISteamIdStorage ids, ISteamLightweightAppInfoStorage steamApiLight, Configuration config, IUserService users)
 {
     _steamApi      = steamApi;
     _ids           = ids;
     _steamApiLight = steamApiLight;
     _config        = config;
     _users         = users;
 }
Пример #2
0
        public SteamLightweightAppInfoDbCache(IDatabaseService database, ISteamInfo steam)
        {
            _database = database;
            _steam    = steam;

            try
            {
                _database.Exec("CREATE TABLE IF NOT EXISTS `SteamLightweightAppInfo` (`AppId` TEXT NOT NULL, `Name` TEXT NOT NULL, `Desc` TEXT NOT NULL)");
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        }