/// <summary>
        /// Initializes a new instance of the <see cref="VideoPreview"/> class.
        /// </summary>
        public VideoPreview()
        {
            InitializeComponent();

            this.Loaded          += this.VideoPreview_Loaded;
            this.thumbnailService = ServiceLocator.Current.GetInstance(typeof(IThumbnailService)) as IThumbnailService;
        }
Пример #2
0
        public SettingsViewModel(
            IPageService pageService,
            IMonitorsService monitorsService,
            IOptionsService optionsService,
            IActiveMediaItemsService activeMediaItemsService,
            IThumbnailService thumbnailService,
            ISnackbarService snackbarService)
        {
            _pageService             = pageService;
            _monitorsService         = monitorsService;
            _optionsService          = optionsService;
            _thumbnailService        = thumbnailService;
            _activeMediaItemsService = activeMediaItemsService;
            _snackbarService         = snackbarService;

            _recentlyUsedMediaFolders = new RecentlyUsedFolders();
            InitRecentlyUsedFolders();

            _monitors         = GetSystemMonitors();
            _languages        = GetSupportedLanguages();
            _loggingLevels    = GetLoggingLevels();
            _fadingTypes      = GetImageFadingTypes();
            _fadingSpeeds     = GetFadingSpeedTypes();
            _renderingMethods = GetRenderingMethods();
            _magnifierShapes  = GetMagnifierShapes();
            _magnifierSizes   = GetMagnifierSizes();
            _mirrorHotKeys    = GetMirrorHotKeys();

            _pageService.NavigationEvent += HandleNavigationEvent;

            InitCommands();
            Messenger.Default.Register <ShutDownMessage>(this, OnShutDown);
        }
Пример #3
0
        public OperatorViewModel(
            IMediaProviderService mediaProviderService,
            IThumbnailService thumbnailService,
            IOptionsService optionsService,
            IPageService pageService,
            IFolderWatcherService folderWatcherService,
            IMediaMetaDataService metaDataService)
        {
            _mediaProviderService = mediaProviderService;

            _thumbnailService = thumbnailService;
            _thumbnailService.ThumbnailsPurgedEvent += HandleThumbnailsPurgedEvent;

            _optionsService = optionsService;
            _optionsService.MediaFolderChangedEvent               += HandleMediaFolderChangedEvent;
            _optionsService.AllowVideoPauseChangedEvent           += HandleAllowVideoPauseChangedEvent;
            _optionsService.AllowVideoPositionSeekingChangedEvent += HandleAllowVideoPositionSeekingChangedEvent;

            folderWatcherService.ChangesFoundEvent += HandleFileChangesFoundEvent;

            _pageService = pageService;
            _pageService.MediaChangeEvent          += HandleMediaChangeEvent;
            _pageService.MediaMonitorChangedEvent  += HandleMediaMonitorChangedEvent;
            _pageService.MediaPositionChangedEvent += HandleMediaPositionChangedEvent;

            _metaDataService = metaDataService;

            LoadMediaItems();
            InitCommands();

            LaunchThumbnailQueueConsumer();

            Messenger.Default.Register <ShutDownMessage>(this, OnShutDown);
        }
Пример #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CommentViewPresentationModel"/> class.
        /// </summary>
        /// <param name="view">The <see cref="ICommentView"/>.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="configurationService">The configuration service.</param>
        /// <param name="projectService">The project service.</param>
        /// <param name="timelineModel">The timeline model.</param>
        /// <param name="regionManager">The <see cref="IRegionManager"/> to activate the comment view.</param>
        /// <param name="thumbnailService">The <see cref="IThumbnailService"/> used to retrieve thumbnails.</param>
        public CommentViewPresentationModel(ICommentView view, IEventAggregator eventAggregator, IConfigurationService configurationService, IProjectService projectService, ITimelineModel timelineModel, IRegionManager regionManager, IThumbnailService thumbnailService)
        {
            this.eventAggregator      = eventAggregator;
            this.configurationService = configurationService;
            this.projectService       = projectService;
            this.timelineModel        = timelineModel;
            this.regionManager        = regionManager;
            this.thumbnailService     = thumbnailService;
            this.View                 = view;
            this.currentComment       = new Comment(Guid.Empty);
            this.searchCommand        = new DelegateCommand <string>(this.Search);
            this.deleteCommand        = new DelegateCommand <object>(this.Delete);
            this.saveCommand          = new DelegateCommand <Guid>(this.Save);
            this.cancelCommand        = new DelegateCommand <string>(this.Cancel);
            this.editCommand          = new DelegateCommand <object>(this.Edit);
            this.playCommentCommand   = new DelegateCommand <object>(this.PlayComment);
            this.EditMode             = false;
            this.InkCommentStrokes    = new StrokeCollection();
            this.ShowGlobalComments   = true;
            this.ShowTimelineComments = true;

            this.commentDuration = this.configurationService.GetCommentDuration() ?? DefaultCommentDuration;

            this.eventAggregator.GetEvent <ElementMovedEvent>().Subscribe(this.MoveComments, true);

            this.CommentsTypes = this.GetCommentTypes();

            this.PropertyChanged += this.CommentViewPresentationModel_PropertyChanged;
            this.timelineModel.CommentElements.CollectionChanged += this.CommentElements_CollectionChanged;
            this.timelineModel.ElementRemoved += (sender, e) => this.RemoveCommentsAssociatedToElement(e.Element);

            this.LoadComments();

            this.View.Model = this;
        }
Пример #5
0
 public HotelsController(IHotelService hotelService, IImageService imageService, IThumbnailService thumbnailService, IPropertyTypeService propertyTypeService)
 {
     this.hotelService        = hotelService;
     this.imageService        = imageService;
     this.thumbnailService    = thumbnailService;
     this.propertyTypeService = propertyTypeService;
 }
Пример #6
0
 public SampleService(
     IThumbnailService thumbnailService,
     IFaceDetectionService faceDetectionService,
     IBoxExtractorService faceExtractorService)
 {
     _thumbnailService     = thumbnailService;
     _faceDetectionService = faceDetectionService;
     _faceExtractorService = faceExtractorService;
 }
Пример #7
0
 public ThumbnailCli(AppSettings appSettings,
                     IConsole console, IThumbnailService thumbnailService, IThumbnailCleaner thumbnailCleaner,
                     ISelectorStorage selectorStorage)
 {
     _appSettings      = appSettings;
     _thumbnailService = thumbnailService;
     _console          = console;
     _thumbnailCleaner = thumbnailCleaner;
     _selectorStorage  = selectorStorage;
 }
 public ImageService(IConfiguration configuration, ApplicationContext applicationContext, IThumbnailService thumbnailService, IHostingEnvironment env)
 {
     accessKey               = configuration.GetConnectionString(AzureConnectionStringProvider.GetAzureConnectionString(env));
     account                 = CloudStorageAccount.Parse(accessKey);
     blobClient              = account.CreateCloudBlobClient();
     blobContainer           = blobClient.GetContainerReference(blobContainerName);
     queueClient             = account.CreateCloudQueueClient();
     this.applicationContext = applicationContext;
     this.thumbnailService   = thumbnailService;
 }
Пример #9
0
        public Photo(IImageFileFactory imageFactory, IThumbnailService thumbnailService, uint id, long unixTime) : base(id)
        {
            imageFileFactory      = imageFactory;
            this.thumbnailService = thumbnailService;

            time = DateTimeUtil.ToDateTime(unixTime);
            tags = new List <Tag>();

            description = string.Empty;
            rating      = 0;
        }
 public HotelService(ApplicationContext applicationContext,
                     IImageService imageService,
                     IThumbnailService thumbnailService,
                     IStringLocalizer <HotelService> localizer,
                     IMapper mapper)
 {
     this.applicationContext = applicationContext;
     this.imageService       = imageService;
     this.thumbnailService   = thumbnailService;
     this.localizer          = localizer;
     this.mapper             = mapper;
 }
Пример #11
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VideoPreview"/> class.
        /// </summary>
        /// <param name="element">The <see cref="TimelineElement"/> element.</param>
        public VideoPreview(TimelineElement element)
        {
            InitializeComponent();

            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            this.DataContext      = element;
            this.thumbnailService = ServiceLocator.Current.GetInstance(typeof(IThumbnailService)) as IThumbnailService;
        }
Пример #12
0
        public MetaDataQueueConsumer(
            IThumbnailService thumbnailService,
            BlockingCollection <MediaItem> metaDataProducerCollection,
            CancellationToken cancellationToken)
        {
            _thumbnailService = thumbnailService;

            _collection        = metaDataProducerCollection;
            _cancellationToken = cancellationToken;

            _problemFiles = new BlockingCollection <MediaItem>();
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="CommentViewPresentationModel"/> class.
        /// </summary>
        /// <param name="view">The <see cref="ICommentView"/>.</param>
        /// <param name="eventAggregator">The event aggregator.</param>
        /// <param name="configurationService">The configuration service.</param>
        /// <param name="projectService">The project service.</param>
        /// <param name="sequenceRegistry">The seqeunce registry.</param>
        /// <param name="regionManager">The <see cref="IRegionManager"/> to activate the comment view.</param>
        /// <param name="thumbnailService">The <see cref="IThumbnailService"/> used to retrieve thumbnails.</param>
        public CommentViewPresentationModel(
            ICommentView view,
            IEventAggregator eventAggregator,
            IConfigurationService configurationService,
            IProjectService projectService,
            ISequenceRegistry sequenceRegistry,
            IRegionManager regionManager,
            IThumbnailService thumbnailService)
        {
            this.eventAggregator      = eventAggregator;
            this.configurationService = configurationService;
            this.projectService       = projectService;
            this.sequenceRegistry     = sequenceRegistry;
            this.regionManager        = regionManager;
            this.thumbnailService     = thumbnailService;
            this.View                  = view;
            this.currentComment        = new Comment(Guid.Empty);
            this.searchCommand         = new DelegateCommand <string>(this.Search);
            this.deleteCommand         = new DelegateCommand <object>(this.Delete);
            this.saveCommand           = new DelegateCommand <Guid>(this.Save);
            this.cancelCommand         = new DelegateCommand <string>(this.Cancel);
            this.editCommand           = new DelegateCommand <object>(this.Edit);
            this.playCommentCommand    = new DelegateCommand <object>(this.PlayComment);
            this.KeyboardActionCommand = new DelegateCommand <Tuple <KeyboardAction, object> >(this.ExecuteKeyboardAction, this.CanExecuteKeyboardAction);
            this.EditMode              = false;
            this.InkCommentStrokes     = new StrokeCollection();
            this.ShowGlobalComments    = true;
            this.ShowTimelineComments  = true;

            this.commentDuration = this.configurationService.GetCommentDuration() ?? DefaultCommentDuration;

            this.eventAggregator.GetEvent <ElementMovedEvent>().Subscribe(this.MoveComments, true);

            this.eventAggregator.GetEvent <DisplayMarkerBrowserWindowEvent>().Subscribe(this.DisplayView, ThreadOption.PublisherThread, true, this.FilterDisplayMarkerBrowserWindowEvent);

            this.eventAggregator.GetEvent <ResetWindowsEvent>().Subscribe(this.ResetWindow);
            this.CommentsTypes = this.GetCommentTypes();

            this.PropertyChanged += this.CommentViewPresentationModel_PropertyChanged;

            if (sequenceRegistry.CurrentSequenceModel != null)
            {
                this.sequenceRegistry.CurrentSequence.CommentElements.CollectionChanged += this.CommentElements_CollectionChanged;
                this.sequenceRegistry.CurrentSequenceModel.ElementRemoved += this.OnCurrentSequenceOnElementRemoved;
            }

            this.sequenceRegistry.CurrentSequenceChanged += this.HandleCurrentSequenceChanged;

            this.LoadComments();

            this.View.Model = this;
        }
Пример #14
0
 public ImportSample(
     IMediaStore store,
     IMetadataExtractor metadataExtractor,
     IFaceDetectionService faceDetectionService,
     IBoxExtractorService faceExtractorService,
     IThumbnailService thumbnailService)
 {
     _store                = store;
     _metadataExtractor    = metadataExtractor;
     _faceDetectionService = faceDetectionService;
     _faceExtractorService = faceExtractorService;
     _thumbnailService     = thumbnailService;
 }
Пример #15
0
 public ImageGalleryDriver(IImageGalleryService imageGalleryService,
                           IThumbnailService thumbnailService,
                           IWorkContextAccessor workContextAccessor,
                           ISiteService siteService,
                           IShapeFactory shapeFactory
                           )
 {
     _thumbnailService    = thumbnailService;
     _workContextAccessor = workContextAccessor;
     _imageGalleryService = imageGalleryService;
     _siteService         = siteService;
     Shape = shapeFactory;
 }
Пример #16
0
        /// <summary>
        /// Initializes a new instance of the <see cref="VideoPreview"/> class.
        /// </summary>
        public VideoPreview()
        {
            InitializeComponent();

            this.MouseEnter                       += (sender, e) => this.ShowInterface.Begin();
            this.MouseLeave                       += (sender, e) => this.HideInterface.Begin();
            this.Player.StartMediaPlay            += this.Player_StartPlay;
            this.Player.ExpandToFullScreen        += this.Player_ExpandToFullScreen;
            this.Player.MetadataClick             += this.OnPlayerMetadataClick;
            this.Player.MediaPositionChanged      += this.Player_MediaPositionChanged;
            this.Player.FrameRateParsed           += this.Player_FrameRateParsed;
            this.Player.MediaErrorExpandedChanged += this.Player_MediaErrorExpandedChanged;
            this.Loaded          += this.VideoPreview_Loaded;
            this.thumbnailService = ServiceLocator.Current.GetInstance(typeof(IThumbnailService)) as IThumbnailService;
        }
Пример #17
0
        private void ServiceRegistered(object sender, ServiceRegistrationEventArgs e)
        {
            var service = e.Service as IThumbnailService;

            if (service != null)
            {
                thumbnailService = service;
                thumbnailService.ThumbnailCompleted += ThumbnailCompleted;
                ServiceProvider.ServiceRegistered   -= ServiceRegistered;
                foreach (var package in initialQueue)
                {
                    StartInitialBuild(package);
                }
                initialQueue.Clear();
            }
        }
Пример #18
0
        //TODO: Remove Image repository as soon as it can cascade the saving
        public ImageGalleryService(IMediaService mediaService, IRepository<ImageGallerySettingsRecord> repository,
                                   IRepository<ImageGalleryImageSettingsRecord> imageRepository, IThumbnailService thumbnailService,
                                   IRepository<ImageGalleryRecord> imageGalleryPartRepository, IOrchardServices services,
                                   IStorageProvider storageProvider)
        {
            _storageProvider = storageProvider;
            _services = services;
            _imageGalleryPartRepository = imageGalleryPartRepository;
            _repository = repository;
            _mediaService = mediaService;
            _imageRepository = imageRepository;
            _thumbnailService = thumbnailService;

            if (!_mediaService.GetMediaFolders(string.Empty).Any(o => o.Name == ImageGalleriesMediaFolder)) {
                _mediaService.CreateFolder(string.Empty, ImageGalleriesMediaFolder);
            }
        }
Пример #19
0
        public MetaDataQueueConsumer(
            IThumbnailService thumbnailService,
            IMediaMetaDataService metaDataService,
            IOptionsService optionsService,
            BlockingCollection <MediaItem> metaDataProducerCollection,
            string ffmpegFolder,
            CancellationToken cancellationToken)
        {
            _thumbnailService = thumbnailService;
            _metaDataService  = metaDataService;
            _optionsService   = optionsService;

            _ffmpegFolder = ffmpegFolder;

            _collection        = metaDataProducerCollection;
            _cancellationToken = cancellationToken;
        }
Пример #20
0
        // Constructor
        public PhotoStore(IImageFileFactory imageFileFactory, IThumbnailService thumbnailService, IDb db, bool isNew)
            : base(db, false)
        {
            this.imageFileFactory = imageFileFactory;
            this.thumbnailService = thumbnailService;

            if (!isNew)
            {
                return;
            }

            Database.Execute(
                "CREATE TABLE photos (\n" +
                "       id                      INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, \n" +
                "       time                    INTEGER NOT NULL, \n" +
                "       base_uri                STRING NOT NULL, \n" +
                "       filename                STRING NOT NULL, \n" +
                "       description             TEXT NOT NULL, \n" +
                "       roll_id                 INTEGER NOT NULL, \n" +
                "       default_version_id      INTEGER NOT NULL, \n" +
                "       rating                  INTEGER NULL \n" +
                ")");

            Database.Execute(
                "CREATE TABLE photo_tags (\n" +
                "       photo_id        INTEGER, \n" +
                "       tag_id          INTEGER, \n" +
                "       UNIQUE (photo_id, tag_id)\n" +
                ")");

            Database.Execute(
                "CREATE TABLE photo_versions (\n" +
                "       photo_id        INTEGER, \n" +
                "       version_id      INTEGER, \n" +
                "       name            STRING, \n" +
                "       base_uri        STRING NOT NULL, \n" +
                "       filename        STRING NOT NULL, \n" +
                "       import_md5      TEXT NULL, \n" +
                "       protected       BOOLEAN, \n" +
                "       UNIQUE (photo_id, version_id)\n" +
                ")");

            Database.Execute("CREATE INDEX idx_photo_versions_id ON photo_versions(photo_id)");
            Database.Execute("CREATE INDEX idx_photo_versions_import_md5 ON photo_versions(import_md5)");
            Database.Execute("CREATE INDEX idx_photos_roll_id ON photos(roll_id)");
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="VideoPreview"/> class.
        /// </summary>
        /// <param name="element">The <see cref="TimelineElement"/> element.</param>
        public VideoPreview(TimelineElement element)
        {
            this.element = element;
            this.InitializeComponent();

            if (this.element == null)
            {
                throw new ArgumentNullException("element");
            }

            this.element.Asset.PropertyChanged += this.OnPropertyChanged;

            this.DataContext = element;
            this.VolumeLevels.CurrentTimelineElement = element;
            this.VolumeLevels.ItemLocked            += this.OnItemLocked;

            this.thumbnailService = ServiceLocator.Current.GetInstance(typeof(IThumbnailService)) as IThumbnailService;
        }
Пример #22
0
        //TODO: Remove Image repository as soon as it can cascade the saving
        public ImageGalleryService(IMediaService mediaService, IRepository <ImageGallerySettingsRecord> repository,
                                   IRepository <ImageGalleryImageSettingsRecord> imageRepository, IThumbnailService thumbnailService,
                                   IRepository <ImageGalleryRecord> imageGalleryPartRepository, IOrchardServices services,
                                   IStorageProvider storageProvider)
        {
            _storageProvider            = storageProvider;
            _services                   = services;
            _imageGalleryPartRepository = imageGalleryPartRepository;
            _repository                 = repository;
            _mediaService               = mediaService;
            _imageRepository            = imageRepository;
            _thumbnailService           = thumbnailService;

            if (!_mediaService.GetMediaFolders(string.Empty).Any(o => o.Name == ImageGalleriesMediaFolder))
            {
                _mediaService.CreateFolder(string.Empty, ImageGalleriesMediaFolder);
            }
        }
Пример #23
0
 public FileController(IFileService _fileService
     , IUserService userService
     , IProjectService projectService
     , ITempFileService tempFileService
     , IDropBoxService dropboxService
     , IThumbnailService thumbnailService
     , ILogService logService
     , ISecurityService securityService
     )
     : base(userService, logService)
 {
     serviceFile = _fileService;
     serviceProject = projectService;
     serviceTempFile = tempFileService;
     serviceDropBox = dropboxService;
     serviceThumbnail = thumbnailService;
     serviceSecurity = securityService;
 }
Пример #24
0
 public FileController(IFileService _fileService
                       , IUserService userService
                       , IProjectService projectService
                       , ITempFileService tempFileService
                       , IDropBoxService dropboxService
                       , IThumbnailService thumbnailService
                       , ILogService logService
                       , ISecurityService securityService
                       )
     : base(userService, logService)
 {
     serviceFile      = _fileService;
     serviceProject   = projectService;
     serviceTempFile  = tempFileService;
     serviceDropBox   = dropboxService;
     serviceThumbnail = thumbnailService;
     serviceSecurity  = securityService;
 }
Пример #25
0
        public SettingsViewModel(
            IPageService pageService,
            IMonitorsService monitorsService,
            IOptionsService optionsService,
            IThumbnailService thumbnailService)
        {
            _pageService      = pageService;
            _monitorsService  = monitorsService;
            _optionsService   = optionsService;
            _thumbnailService = thumbnailService;

            _monitors      = GetSystemMonitors().ToArray();
            _loggingLevels = GetLoggingLevels().ToArray();
            _fadingTypes   = GetImageFadingTypes().ToArray();
            _fadingSpeeds  = GetFadingSpeedTypes().ToArray();

            _pageService.NavigationEvent += HandleNavigationEvent;

            InitCommands();
            Messenger.Default.Register <ShutDownMessage>(this, OnShutDown);
        }
Пример #26
0
 public UploadController(IThumbnailService thumbnailService)
 {
     _thumbnailService = thumbnailService;
 }
Пример #27
0
 public ThumbnailViewModel(StorageFile storageFile)
 {
     _thumbsService = App.Container.Resolve <IThumbnailService>();
     File           = storageFile;
 }
Пример #28
0
        public OperatorViewModel(
            IMediaProviderService mediaProviderService,
            IThumbnailService thumbnailService,
            IMediaMetaDataService metaDataService,
            IOptionsService optionsService,
            IPageService pageService,
            IFolderWatcherService folderWatcherService,
            IMediaStatusChangingService mediaStatusChangingService,
            IHiddenMediaItemsService hiddenMediaItemsService,
            IActiveMediaItemsService activeMediaItemsService,
            IFrozenVideosService frozenVideosService)
        {
            _mediaProviderService       = mediaProviderService;
            _mediaStatusChangingService = mediaStatusChangingService;

            _hiddenMediaItemsService = hiddenMediaItemsService;
            _hiddenMediaItemsService.UnhideAllEvent += HandleUnhideAllEvent;

            _activeMediaItemsService = activeMediaItemsService;
            _frozenVideosService     = frozenVideosService;

            _thumbnailService = thumbnailService;
            _thumbnailService.ThumbnailsPurgedEvent += HandleThumbnailsPurgedEvent;

            _metaDataService = metaDataService;

            _optionsService = optionsService;
            _optionsService.MediaFolderChangedEvent               += HandleMediaFolderChangedEvent;
            _optionsService.AutoRotateChangedEvent                += HandleAutoRotateChangedEvent;
            _optionsService.AllowVideoPauseChangedEvent           += HandleAllowVideoPauseChangedEvent;
            _optionsService.AllowVideoPositionSeekingChangedEvent += HandleAllowVideoPositionSeekingChangedEvent;
            _optionsService.UseInternalMediaTitlesChangedEvent    += HandleUseInternalMediaTitlesChangedEvent;
            _optionsService.ShowMediaItemCommandPanelChangedEvent += HandleShowMediaItemCommandPanelChangedEvent;
            _optionsService.ShowFreezeCommandChangedEvent         += HandleShowFreezeCommandChangedEvent;
            _optionsService.OperatingDateChangedEvent             += HandleOperatingDateChangedEvent;
            _optionsService.MaxItemCountChangedEvent              += HandleMaxItemCountChangedEvent;
            _optionsService.PermanentBackdropChangedEvent         += async(sender, e) =>
            {
                await HandlePermanentBackdropChangedEvent(sender, e);
            };
            _optionsService.IncludeBlankScreenItemChangedEvent += async(sender, e) =>
            {
                await HandleIncludeBlankScreenItemChangedEvent(sender, e);
            };

            folderWatcherService.ChangesFoundEvent += HandleFileChangesFoundEvent;

            _pageService = pageService;
            _pageService.MediaChangeEvent          += HandleMediaChangeEvent;
            _pageService.SlideTransitionEvent      += HandleSlideTransitionEvent;
            _pageService.MediaMonitorChangedEvent  += HandleMediaMonitorChangedEvent;
            _pageService.MediaPositionChangedEvent += HandleMediaPositionChangedEvent;
            _pageService.MediaNearEndEvent         += async(sender, e) =>
            {
                await HandleMediaNearEndEvent(sender, e);
            };
            _pageService.NavigationEvent += HandleNavigationEvent;

            LoadMediaItems();
            InitCommands();

            LaunchThumbnailQueueConsumer();

            Messenger.Default.Register <ShutDownMessage>(this, OnShutDown);
        }
Пример #29
0
 public ThumbnailViewModel(StorageFile storageFile)
 {
     _thumbsService = App.Container.Resolve<IThumbnailService>();
     File = storageFile;
 }
 public void ThumbnailServiceFixtureSetup()
 {
     thumbnailService = new ThumbnailService(new VideoLibraryConfigurationManager());
 }
 public ThumbnailerController(IThumbnailService service)
 {
     this.service = service;
 }
 public AzureMediaServicesMediaFacade(IConfigurationManager configurationManager, IThumbnailService thumbnailService)
 {
     this.configurationManager = configurationManager;
     this.thumbnailService = thumbnailService;
     mediaContext = new CloudMediaContext(configurationManager.AccountName, configurationManager.AccountKey);
 }
Пример #33
0
 public ThumbnailLoader(IImageFileFactory imageFileFactory, IThumbnailService thumbnailService) : base(imageFileFactory)
 {
     this.thumbnailService = thumbnailService;
 }
Пример #34
0
 public MainViewModel(IThumbnailService thumbnailService, IShareService shareService)
 {
     _thumbnailService = thumbnailService;
     _shareService     = shareService;
 }
Пример #35
0
 public ImageGalleryDriver(IImageGalleryService imageGalleryService, IThumbnailService thumbnailService, IWorkContextAccessor workContextAccessor)
 {
     _thumbnailService    = thumbnailService;
     _workContextAccessor = workContextAccessor;
     _imageGalleryService = imageGalleryService;
 }
Пример #36
0
 public void MyTestInitialize()
 {
     var kernel = NinjectWebCommon.CreatePublicKernel();
     service = kernel.Get<IThumbnailService>();
 }