Ejemplo n.º 1
0
 public IReadOnlyList <FileModel> GetFiles(string directory, ISpecification <FileModel> specification) =>
 _environmentFileService
 .GetFiles(directory)
 .Select(CreateFrom)
 .WhereNotNull()
 .Where(specification.IsSatisfiedBy)
 .ToArray();
Ejemplo n.º 2
0
 public string[] GetFiles(string directory) =>
 _environmentFileService.GetFiles(PreprocessPath(directory));