public IThumbnailer GetThumbnailerForUri(SafeUri uri) { if (factory.HasLoader(uri)) { return(new ImageThumbnailer(uri, factory, fileSystem)); } return(null); }
Uri NextImageFileOrNull(IEnumerator <Uri> enumerator) { Uri nextImageFile; do { if (enumerator.MoveNext()) { nextImageFile = enumerator.Current; } else { return(null); } } while (!factory.HasLoader(nextImageFile)); return(nextImageFile); }