Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="sidebarView">The sidebar view.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public UserController(IMediaRepository mediaRepository, IPopulateSidebarView sidebarView, IPaginationService <Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository             = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService           = paginationService;
     _sidebarView = sidebarView;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="YearController"/> class.
 /// </summary>
 /// <param name="recentRepository">The recent repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public YearController(IRecentRepository recentRepository, ITagService tagService, ITagRepository tagRepository, IPersistentCollectionService persistentCollectionService)
 {
     _recentRepository            = recentRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagRepository = tagRepository;
     _tagService    = tagService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="sidebarView">The sidebar view.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public UserController(IMediaRepository mediaRepository, IPopulateSidebarView sidebarView, IPaginationService<Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService = paginationService;
     _sidebarView = sidebarView;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="YearController"/> class.
 /// </summary>
 /// <param name="recentRepository">The recent repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public YearController(IRecentRepository recentRepository, ITagService tagService, ITagRepository tagRepository, IPersistentCollectionService persistentCollectionService)
 {
     _recentRepository = recentRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagRepository = tagRepository;
     _tagService = tagService;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UploadController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="mediaQueueRepository">The media queue repository.</param>
 /// <param name="collectionRepository">The collection repository.</param>
 /// <param name="persistentCollection">The persistent collection.</param>
 public UploadController(IMediaRepository mediaRepository,
                         IMediaQueueRepository mediaQueueRepository,
                         IPersistentCollectionRepository collectionRepository,
                         IPersistentCollectionService persistentCollection)
 {
     _mediaQueueRepository = mediaQueueRepository;
     _persistentCollection = persistentCollection;
     _mediaRepository      = mediaRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlbumsController"/> class.
 /// </summary>
 /// <param name="albumRepository">The album repository.</param>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public AlbumsController(IAlbumRepository albumRepository, 
     IMediaRepository mediaRepository,
     IPaginationService<Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _albumRepository = albumRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService = paginationService;
     _mediaRepository = mediaRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="AlbumsController"/> class.
 /// </summary>
 /// <param name="albumRepository">The album repository.</param>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public AlbumsController(IAlbumRepository albumRepository,
                         IMediaRepository mediaRepository,
                         IPaginationService <Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _albumRepository             = albumRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService           = paginationService;
     _mediaRepository             = mediaRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UploadController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="mediaQueueRepository">The media queue repository.</param>
 /// <param name="collectionRepository">The collection repository.</param>
 /// <param name="persistentCollection">The persistent collection.</param>
 public UploadController(IMediaRepository mediaRepository, 
     IMediaQueueRepository mediaQueueRepository,
     IPersistentCollectionRepository collectionRepository,
     IPersistentCollectionService persistentCollection)
 {
     _mediaQueueRepository = mediaQueueRepository;
     _persistentCollection = persistentCollection;
     _mediaRepository = mediaRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="pagingService">The paging service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public TagsController(IMediaRepository mediaRepository, 
     IPagingRepository pagingRepository,
     IPagingService pagingService,
     ITagRepository tagRepository,
     ITagService tagService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagService = tagService;
     _tagRepository = tagRepository;
     _pagingRepository = pagingRepository;
     _pagingService = pagingService;
 }
Exemplo n.º 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="pagingRepository">The paging repository.</param>
 /// <param name="pagingService">The paging service.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="tagService">The tag service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public TagsController(IMediaRepository mediaRepository,
                       IPagingRepository pagingRepository,
                       IPagingService pagingService,
                       ITagRepository tagRepository,
                       ITagService tagService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository             = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _tagService       = tagService;
     _tagRepository    = tagRepository;
     _pagingRepository = pagingRepository;
     _pagingService    = pagingService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotosController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="rotateService">The rotate service.</param>
 /// <param name="managePhotoService">The manage photo service.</param>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="locationRepository">The location repository.</param>
 /// <param name="albumRepository">The album repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public PhotosController(IMediaRepository mediaRepository,
     ITagRepository tagRepository,
     IImageService rotateService,
     IManagePhotoFactory managePhotoService,
     IMediaFileService mediaFileService, ILocationRepository locationRepository, IAlbumRepository albumRepository, IPersistentCollectionService persistentCollectionService)
     : base(managePhotoService, persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _albumRepository = albumRepository;
     _locationRepository = locationRepository;
     _mediaFileService = mediaFileService;
     _rotateService = rotateService;
     _tagRepository = tagRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="RecentController"/> class.
 /// </summary>
 /// <param name="recentRepository">The recent repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public RecentController(IRecentRepository recentRepository, IPersistentCollectionService persistentCollectionService)
 {
     _recentRepository = recentRepository;
     _persistentCollectionService = persistentCollectionService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public SearchController(IMediaRepository mediaRepository, IPaginationService <Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository             = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService           = paginationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotoBaseController"/> class.
 /// </summary>
 /// <param name="managePhotoService">The manage photo service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 protected PhotoBaseController(IManagePhotoFactory managePhotoService, IPersistentCollectionService persistentCollectionService)
 {
     _managePhotoService = managePhotoService;
        this.persistentCollectionService = persistentCollectionService;
 }
Exemplo n.º 15
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RecentController"/> class.
 /// </summary>
 /// <param name="recentRepository">The recent repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public RecentController(IRecentRepository recentRepository, IPersistentCollectionService persistentCollectionService)
 {
     _recentRepository            = recentRepository;
     _persistentCollectionService = persistentCollectionService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public HomeController(IMediaRepository mediaRepository, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
 }
Exemplo n.º 17
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotoBaseController"/> class.
 /// </summary>
 /// <param name="managePhotoService">The manage photo service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 protected PhotoBaseController(IManagePhotoFactory managePhotoService, IPersistentCollectionService persistentCollectionService)
 {
     _managePhotoService = managePhotoService;
     this.persistentCollectionService = persistentCollectionService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SearchController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="paginationService">The pagination service.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public SearchController(IMediaRepository mediaRepository, IPaginationService<Media> paginationService, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
     _paginationService = paginationService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="PhotosController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="tagRepository">The tag repository.</param>
 /// <param name="rotateService">The rotate service.</param>
 /// <param name="managePhotoService">The manage photo service.</param>
 /// <param name="mediaFileService">The media file service.</param>
 /// <param name="locationRepository">The location repository.</param>
 /// <param name="albumRepository">The album repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public PhotosController(IMediaRepository mediaRepository,
                         ITagRepository tagRepository,
                         IImageService rotateService,
                         IManagePhotoFactory managePhotoService,
                         IMediaFileService mediaFileService, ILocationRepository locationRepository, IAlbumRepository albumRepository, IPersistentCollectionService persistentCollectionService)
     : base(managePhotoService, persistentCollectionService)
 {
     _mediaRepository    = mediaRepository;
     _albumRepository    = albumRepository;
     _locationRepository = locationRepository;
     _mediaFileService   = mediaFileService;
     _rotateService      = rotateService;
     _tagRepository      = tagRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="HomeController"/> class.
 /// </summary>
 /// <param name="mediaRepository">The media repository.</param>
 /// <param name="persistentCollectionService">The persistent collection service.</param>
 public HomeController(IMediaRepository mediaRepository, IPersistentCollectionService persistentCollectionService)
 {
     _mediaRepository             = mediaRepository;
     _persistentCollectionService = persistentCollectionService;
 }