예제 #1
0
 public AccountController(AccountManager accountManager,
                          IFileService fileService,
                          StatsManager statsManager,
                          AccountFriendManager accountFriendManager,
                          FriendRequestManager friendRequestManager,
                          DataContext dataContext,
                          SessionManager sessionManager,
                          AccountItemManager accountItemManager,
                          ShopItemManager shopItemManager,
                          IImageProcessingService imageProcessingService,
                          FileManager fileManager,
                          IOptions <FileOptions> options, JwtTokenGenerator tokenGenerator, NotificationManager notificationManager)
 {
     _accountManager         = accountManager;
     _fileService            = fileService;
     _statsManager           = statsManager;
     _accountFriendManager   = accountFriendManager;
     _friendRequestManager   = friendRequestManager;
     _dataContext            = dataContext;
     _sessionManager         = sessionManager;
     _accountItemManager     = accountItemManager;
     _shopItemManager        = shopItemManager;
     _imageProcessingService = imageProcessingService;
     _fileManager            = fileManager;
     _tokenGenerator         = tokenGenerator;
     _notificationManager    = notificationManager;
     _options = options.Value;
 }
예제 #2
0
 public AccountController(AccountManager accountManager, IEmailService emailService,
                          FileManager fileManager,
                          IOptions <EmailVerificationOptions> emailVerificationOptions,
                          IOptions <ResetPasswordOptions> resetPasswordOptions,
                          IOptions <FinancialOptions> financialOptions,
                          IFileService fileService,
                          IHostingEnvironment hostingEnvironment,
                          IOptions <FileOptions> fileOptions,
                          JwtTokenGenerator tokenGenerator,
                          SessionManager sessionManager,
                          AccountItemManager accountItemManager,
                          ShopItemManager shopItemManager,
                          IImageProcessingService imageProcessingService,
                          StatsManager statsManager)
 {
     _accountManager           = accountManager;
     _emailService             = emailService;
     _fileManager              = fileManager;
     _fileService              = fileService;
     _accountItemManager       = accountItemManager;
     _shopItemManager          = shopItemManager;
     _imageProcessingService   = imageProcessingService;
     _statsManager             = statsManager;
     _emailVerificationOptions = emailVerificationOptions.Value;
     _resetPasswordOptions     = resetPasswordOptions.Value;
 }
예제 #3
0
        public MainViewModel(IImageLoaderService imageLoaderService, IImageProcessingService imageProcessingService)
        {
            this.imageLoaderService     = imageLoaderService;
            this.imageProcessingRoutine = imageProcessingService.Current;

            this.imageProcessingLog = new ImageProcessingLog();
        }
예제 #4
0
 public HomeController(
     IImageProcessingService tiffService,
     ISessionService <ISourceImage> imagesSessionService,
     IImageValidationService imageValidationService)
 {
     _tiffService            = tiffService;
     _imagesSessionService   = imagesSessionService;
     _imageValidationService = imageValidationService;
 }
 public ImagesController(
     IUserService userService,
     IImageProcessingService imageProcessingService,
     IImageFetchingService imageFetchingService)
 {
     this._userService            = userService;
     this._imageProcessingService = imageProcessingService;
     this._imageFetchingService   = imageFetchingService;
 }
 public ProfileController(IFileHandlerService fileHandlerService,
                          AppDbContext ctx,
                          UserManager <ApplicationUser> userManager,
                          IImageProcessingService imageProcessingService)
 {
     _fileHandlerService = fileHandlerService;
     _ctx                    = ctx;
     _userManager            = userManager;
     _imageProcessingService = imageProcessingService;
 }
예제 #7
0
 public EntriesController(
     RNNContext context,
     IHostingEnvironment environment,
     IImageProcessingService imageProcessing,
     UserManager <ApplicationUser> userManager) : base(environment)
 {
     _userManager     = userManager;
     _context         = context;
     _imageProcessing = imageProcessing;
 }
예제 #8
0
        public FileController(IHostingEnvironment env,
                              IUnitOfWork unitOfWork,
                              IMapper mapper,
                              IImageProcessingService imageProcessingService)
        {
            Argument.IsNotNull(() => env);
            _env = env;

            Argument.IsNotNull(() => unitOfWork);
            _unitOfWork             = unitOfWork;
            _mapper                 = mapper;
            _imageProcessingService = imageProcessingService;
        }
예제 #9
0
 public EntryService(
     IUnitOfWork unitOfWork,
     IEntryRepository entryRepository,
     ITopicRepository topicRepository,
     IEntryToTopicRepository entryToTopicRepository,
     IImageProcessingService imageProcessingService)
 {
     _unitOfWork             = unitOfWork;
     _entryRepository        = entryRepository;
     _topicRepository        = topicRepository;
     _entryToTopicRepository = entryToTopicRepository;
     _imageProcessingService = imageProcessingService;
 }
 public StartProcessingEventHandler(
     IServiceScopeFactory serviceScopeFactory,
     IMessageSender2 messageSender,
     IDownloadManager downloadManager,
     IImageProcessingService imageProcessingService,
     ILogger <StartProcessingEventHandler> logger)
 {
     _serviceScopeFactory    = serviceScopeFactory;
     _messageSender          = messageSender;
     _downloadManager        = downloadManager;
     _imageProcessingService = imageProcessingService;
     _logger = logger;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:FacesToSmileys.ViewModels.TakePhotoViewModel"/> class.
        /// </summary>
        /// <param name="photoService">Photo service.</param>
        /// <param name="imageProcessiongService">Image processiong service.</param>
        /// <param name="detectionService">Detection service.</param>
        /// <param name="fileService">File service.</param>
        public TakePhotoViewModel(IPhotoService photoService,
                                  IImageProcessingService imageProcessiongService,
                                  IDetectionService detectionService,
                                  IFileService fileService,
                                  IAnalyticService analyticService)
        {
            PhotoService           = photoService;
            ImageProcessingService = imageProcessiongService;
            DetectionService       = detectionService;
            FileService            = fileService;
            AnalyticService        = analyticService;

            Initialize();
        }
        // Apply processing to current active image synchronously
        public void AddOneShotImageProcessingToActiveImage(IImageProcessingService imageProcessingService)
        {
            int activeImageIndex = this.imageManagerService.ActiveImageIndex;

            if (activeImageIndex >= 0)
            {
                ImageService imageService = this.imageManagerService.GetImageServiceFromIndex(activeImageIndex);

                byte[,,] clonedImageData = imageService.ImageSource.OriginalImageData.Clone() as byte[, , ];
                byte[] clonedOverlayData = imageService.OverlayImageData.Clone() as byte[];

                imageProcessingService.ProcessImageData(clonedImageData, clonedOverlayData);

                imageService.UpdateImageData(clonedImageData, clonedOverlayData);
            }
        }
예제 #13
0
        public EditTrackViewModel(Common.Singletons.Library library, IMessenger messenger, IAlbumInfoService webAlbumInfoService,
                                  ITrackUpdateService trackUpdateService, IImageProcessingService imageProcessingService, IWebBrowserService webBrowserService,
                                  IFileDialogService fileDialogService, ILyricsService lyricsService)
            : base(TabType.EditTrack, IconType.Edit, "Edit Track", messenger, false)
        {
            _library = library;

            _fileDialogService      = fileDialogService;
            _imageProcessingService = imageProcessingService;
            _messenger           = messenger;
            _trackUpdateService  = trackUpdateService;
            _webAlbumInfoService = webAlbumInfoService;
            _webBrowserService   = webBrowserService;
            _lyricsService       = lyricsService;

            GetLyricsCommand       = new RelayCommand(OnGetLyrics);
            LyricsWebSearchCommand = new RelayCommand(OnLyricsWebSearch);
        }
예제 #14
0
        public ArtistViewModel(Common.Singletons.Library library, IArtistWebInfoService artistWebInfoService,
                               IImageProcessingService imageProcessingService, IConfigSettings configSettings)
            : base(TabType.Artist, IconType.Users, "Artist")
        {
            _imageProcessingService = imageProcessingService;
            _library = library;
            _artistWebInfoService = artistWebInfoService;
            _configSettings       = configSettings;

            ShowCurrentArtistCommand = new RelayCommand(ShowCurrentArtist);

            _similarArtists = new List <ArtistWebSimilarArtist>();

            for (var i = 0; i < _configSettings.NumberOfSimilarArtistsToDisplay; i++)
            {
                _similarArtists.Add(new ArtistWebSimilarArtist());
            }

            Tweets = new ObservableCollection <Tweet>();
        }
예제 #15
0
        public AlbumViewModel(DiscViewModel disc, IMessenger messenger, IAlbumInfoService albumInfoService,
                              IImageProcessingService imageProcessingService, IFileDialogService fileDialogService, List <Artist> artists, Track track)
        {
            _fileDialogService      = fileDialogService;
            _imageProcessingService = imageProcessingService;
            _messenger           = messenger;
            _webAlbumInfoService = albumInfoService;

            _disc = disc;

            Artists = artists;

            GetArtworkFromUrlCommand  = new RelayCommand(OnGetArtworkFromUrl);
            GetArtworkFromFileCommand = new RelayCommand(OnGetArtworkFromFile);
            GetArtworkFromWebCommand  = new RelayCommand(OnGetArtworkFromWeb, CanGetArtworkFromWeb);
            ClearArtworkCommand       = new RelayCommand(OnClearArtwork);

            Populate(track);

            Modified = false;
        }
예제 #16
0
 public ImageThumbnailService(
     IImageProcessingService imageProcessingService,
     IFileService fileService,
     IImageUploadRepository imageUploadRepository,
     ILogger <ImageThumbnailService> logger,
     IMediator mediator,
     IOptions <AppSettingsModel> appSettings,
     IImageReadingService imageReadingService,
     IImageWritingService imageWritingService,
     IProcessingProfileRepository processingProfileRepository)
 {
     this.imageProcessingService = imageProcessingService;
     this.fileService            = fileService;
     this.imageUploadRepository  = imageUploadRepository;
     this.logger                      = logger;
     this.mediator                    = mediator;
     this.appSettings                 = appSettings;
     this.imageReadingService         = imageReadingService;
     this.imageWritingService         = imageWritingService;
     this.processingProfileRepository = processingProfileRepository;
 }
예제 #17
0
 public ImageController(IImageProcessingService imageProcessingService)
 {
     _imageProcessingService = imageProcessingService;
 }
예제 #18
0
 public LibraryArtistViewModel(IArtistInfoService webArtistInfoService, IImageProcessingService imageProcessingService, IConfigSettings configSettings)
 {
     _imageProcessingService = imageProcessingService;
     _webArtistInfoService   = webArtistInfoService;
     _configSettings         = configSettings;
 }
예제 #19
0
        public DiscViewModel(TrackViewModel trackViewModel, IMessenger messenger, IAlbumInfoService albumInfoService, IImageProcessingService imageProcessingService,
                             IFileDialogService fileDialogService, List <Artist> artists, Track track)
        {
            _track = trackViewModel;

            Album = new AlbumViewModel(this, messenger, albumInfoService, imageProcessingService, fileDialogService, artists, track);

            Populate(track.Disc);

            Modified = false;
        }
예제 #20
0
        public TrackViewModel(IMessenger messenger, IAlbumInfoService albumInfoService, IImageProcessingService imageProcessingService,
                              IWebBrowserService webBrowserService, IFileDialogService fileDialogService, List <Artist> artists, List <string> tags, Track track)
        {
            Artist = new ArtistViewModel(this, artists, track.Artist, webBrowserService);
            Disc   = new DiscViewModel(this, messenger, albumInfoService, imageProcessingService, fileDialogService, artists, track);

            RemoveTagCommand = new RelayCommand <string>(OnRemoveTag);

            AllTags = tags;

            Populate(track);

            Modified = false;
        }
예제 #21
0
 public ImageService(IFileStorage fileStorage, IImageProcessingService imageProcessingService)
 {
     _fileStorage            = fileStorage;
     _imageProcessingService = imageProcessingService;
 }
예제 #22
0
 public Application(IImageProcessingService imageProcessingService)
 {
     _imageProcessingService = imageProcessingService;
 }