Example #1
0
 public PhotoThumbnail(
     IThumbnailLoader thumbnailLoader,
     IEntity entity,
     CancellationToken cancellationToken)
 {
     _cancellationToken = cancellationToken;
     _thumbnailLoader   = thumbnailLoader;
     _entity            = entity;
 }
Example #2
0
        public void Setup()
        {
            var catalog = new AggregateCatalog(
                new AssemblyCatalog(Assembly.GetAssembly(typeof(Viewer.Data.IEntity))),
                new AssemblyCatalog(Assembly.GetAssembly(typeof(Viewer.Query.IRuntime))),
                new AssemblyCatalog(Assembly.GetAssembly(typeof(Viewer.QueryRuntime.IntValueAdditionFunction))),
                new AssemblyCatalog(Assembly.GetAssembly(typeof(Viewer.IO.IFileSystem))),
                new AssemblyCatalog(Assembly.GetAssembly(typeof(Viewer.Images.IThumbnailLoader))));

            _container = new CompositionContainer(catalog);

            _container.GetExportedValue <IStorageConfiguration>();
            _storage = _container.GetExportedValue <IAttributeStorage>();
            _loader  = _container.GetExportedValue <IThumbnailLoader>();
        }
Example #3
0
 public ImportController(IFileSystem fileSystem, IThumbnailLoader thumbnailLoader)
 {
     this.fileSystem      = fileSystem;
     this.thumbnailLoader = thumbnailLoader;
 }
Example #4
0
 public ThumbnailFactory(IThumbnailLoader thumbnailLoader)
 {
     _thumbnailLoader = thumbnailLoader;
 }
Example #5
0
 public AssetViewModelBuilder(IThumbnailLoader thumbnailLoader, Editor editor)
 {
     _thumbnailLoader = thumbnailLoader;
     _editor          = editor;
 }