Ejemplo n.º 1
0
        public static FileInfoBase GetFileInfo(FileBase file)
        {
            List <FileInfoBase> results = GetFileInfos(file.GetType());

            if (results.Count > 1)
            {
                Log.Warning($"Multiple file infos found for file: {file}. Using first.");
            }

            if (results.Count <= 0)
            {
                throw new Exception($"No file info for file: {file}");
            }

            return(results[0]);
        }
Ejemplo n.º 2
0
 public static FileInfoBase GetFileInfo(FileBase file)
 {
     return(GetFileInfo(file.GetType()));
 }