Ejemplo n.º 1
0
        public TEntity[] GetEntities <TEntity>(string source, string environment)
        {
            _logger.LogInformation("Get entities data from {source}, {environment}", source, environment);
            var json = JsonLoader.GetByName(source, environment, _sourcesPrefix, _sourcesAssembly);

            var items = ImportFromJson.DeserializeCollectionOf <TEntity>(json);

            _logger.LogInformation("Found {count} item(s)", items.Length);
            return(items);
        }