public FileFormat GetByExtension()
        {
            var result = FileFormatService.GetCached(Extension);

            return(result != null ? new FileFormat(result) : null);
        }
示例#2
0
 /// <summary>
 /// Receives the FileFormatService via DI.
 /// </summary>
 public FileFormatController(FileFormatService fileFormatService)
 {
     _fileFormatService = fileFormatService;
 }