Пример #1
0
 public IReadOnlyList <FileModel> GetFiles(string directory, ISpecification <FileModel> specification) =>
 _environmentFileService
 .GetFiles(directory)
 .Select(CreateFrom)
 .WhereNotNull()
 .Where(specification.IsSatisfiedBy)
 .ToArray();
Пример #2
0
 public string[] GetFiles(string directory) =>
 _environmentFileService.GetFiles(PreprocessPath(directory));