Beispiel #1
0
        public override async Task <TContentType> ReadAsync <TContentType>(IFileReaderModel model)
        {
            if (!IsExistsFile(model.FilePath))
            {
                throw new FileNotFoundException("Could not find file!", model.FilePath);
            }

            return(await GetFileContent <TContentType>(model.FilePath));
        }
Beispiel #2
0
 public abstract Task <TContentType> ReadAsync <TContentType>(IFileReaderModel model);