Пример #1
0
 public ProductImageService(IImageUploaderService imageService, IProductImageRepository repository, IProductService productService, IProductImageValidator productImageValidator)
 {
     _imageService          = imageService ?? throw new ArgumentNullException(nameof(imageService));
     _repository            = repository ?? throw new ArgumentNullException(nameof(repository));
     _productService        = productService ?? throw new ArgumentNullException(nameof(productService));
     _productImageValidator = productImageValidator ?? throw new ArgumentNullException(nameof(productImageValidator));
 }
Пример #2
0
 public BlogManagementController(
     IBlogEntryPhotoRepository blogEntryPhotoRepository,
     IBlogEntryTagRepository blogEntryTagRepository,
     ITagRepository tagRepository,
     IBlogEntryRepository blogEntryRepository,
     ISiteFilesRepository siteFilesRepository,
     IImageUploaderService imageUploaderService,
     IMemoryCache memoryCache)
 {
     _blogEntryPhotoRepository = blogEntryPhotoRepository;
     _blogEntryTagRepository   = blogEntryTagRepository;
     _tagRepository            = tagRepository;
     _blogEntryRepository      = blogEntryRepository;
     _siteFilesRepository      = siteFilesRepository;
     _imageUploaderService     = imageUploaderService;
     _memoryCache = memoryCache;
 }
Пример #3
0
 public SitePageManagementController(
     ISitePagePhotoRepository sitePagePhotoRepository,
     ISitePageTagRepository sitePageTagRepository,
     ISitePageSectionRepository siteSectionRepository,
     ITagRepository tagRepository,
     ISitePageRepository sitePageRepository,
     ISiteFilesRepository siteFilesRepository,
     IImageUploaderService imageUploaderService,
     IMemoryCache memoryCache,
     ICacheService cacheService,
     UserManager <ApplicationUser> userManager)
 {
     this.sitePagePhotoRepository = sitePagePhotoRepository;
     this.sitePageTagRepository   = sitePageTagRepository;
     this.siteSectionRepository   = siteSectionRepository;
     this.tagRepository           = tagRepository;
     this.sitePageRepository      = sitePageRepository;
     this.siteFilesRepository     = siteFilesRepository;
     this.imageUploaderService    = imageUploaderService;
     this.memoryCache             = memoryCache;
     this.cacheService            = cacheService;
     this.userManager             = userManager;
 }
Пример #4
0
 public FlickrImporter(IDocumentSession documentSession, IImageUploaderService imageUploadService, IUserRepository userRepository)
 {
     this.imageUploadService = imageUploadService;
     this.userRepository = userRepository;
     this.documentSession = documentSession;
 }
Пример #5
0
 public FlickrImporter(IDocumentSession documentSession, IImageUploaderService imageUploadService, IUserRepository userRepository)
 {
     this.imageUploadService = imageUploadService;
     this.userRepository     = userRepository;
     this.documentSession    = documentSession;
 }
 public UploadUserImageCommandHandler(IUserRepository userRepository, IImageUploaderService imageUploader)
 {
     this.userRepository = userRepository;
     this.imageUploader  = imageUploader;
 }