Exemple #1
0
    public async Task <IDictionary <string, DeviceConfig> > readAllConfig()
    {
        var configs = new Dictionary <string, DeviceConfig>();
        var keys    = await _reader.getKeys(S3_CONFIG_DIR);

        foreach (var key in keys)
        {
            var config = await readConfig(key);

            configs?.Add(config.uniqueDeviceId, config);
        }
        return(configs);
    }
Exemple #2
0
    public async Task readAllPlayers()
    {
        _playerCache = new ProcessedPlayerCollection();
        var keys = await _reader.getKeys(getBasePath());

        foreach (var key in keys)
        {
            if (key.EndsWith(FULL_FILENAME))
            {
                ProcessedPlayerCollection players = await _reader.Read <ProcessedPlayerCollection>(key);

                _playerCache.merge(players);
            }
        }
    }