コード例 #1
0
 public RecipeController(
     IRecipeRepository recipeRepo,
     IRecipeIngredientRepository ingredientRepo,
     IStepRepository stepRepo,
     IRecipeImageRepository imageRepo,
     IRecipeRateRepository rateRepo,
     ICategoryRepository categoriesRepo,
     IBookmarkRepository bookMarkRepo,
     IRecipeCategoryRepository categoryRepo,
     IUserRepository userRepo,
     IHostingEnvironment environment,
     IHttpContextAccessor accessor
     )
 {
     this.recipeRepo     = recipeRepo;
     this.ingredientRepo = ingredientRepo;
     this.stepRepo       = stepRepo;
     this.imageRepo      = imageRepo;
     this.rateRepo       = rateRepo;
     this.categoriesRepo = categoriesRepo;
     this.bookMarkRepo   = bookMarkRepo;
     this.categoryRepo   = categoryRepo;
     this.userRepo       = userRepo;
     this.environment    = environment;
     this.accessor       = accessor;
 }
コード例 #2
0
        public UnitOfWork(
            AlmanimeContext context,

            IAnimeRepository animes,
            IBookmarkRepository bookmarks,
            IEpisodeRepository episodes,
            IFansubRepository fansubs,
            IMembershipRepository memberships,
            IStorageRepository storage,
            ISubtitleRepository subtitles,
            ISubtitlePartialRepository subtitlesPartials,
            IUserRepository users
            )
        {
            _context = context;

            Animes           = animes;
            Bookmarks        = bookmarks;
            Episodes         = episodes;
            Fansubs          = fansubs;
            Memberships      = memberships;
            Storage          = storage;
            Subtitles        = subtitles;
            SubtitlePartials = subtitlesPartials;
            Users            = users;
        }
コード例 #3
0
 public BookshelfService(IFileService fileService, ICryptoService cryptoService, IBookRepository bookRepository, IBookmarkRepository bookmarkRepository)
 {
     _fileService        = fileService;
     _cryptoService      = cryptoService;
     _bookRepository     = bookRepository;
     _bookmarkRepository = bookmarkRepository;
 }
コード例 #4
0
        public BookInfoPageViewModel(
            IBookRepository bookService,
            DownloadController downloadController,
            IEventAggregator eventAggregator,
            IBookmarkRepository bookmarkRepository,
            INavigationService navigationService,
            SharingDataModel sharingDataModel,
            IBusyOverlayManager busyOverlay,
            ICatalogRepository catalogRepository,
            IAcquisitionServiceFactory acquisitionServiceFactory,
            INotificationsService notificationsService,
            CatalogController catalogController,
            IDownloadsContainer container,
            IBookDownloadsRepository bookDownloadsRepository)
        {
            SharingDataModel           = sharingDataModel;
            _bookService               = bookService;
            _downloadController        = downloadController;
            _bookmarkRepository        = bookmarkRepository;
            _navigationService         = navigationService;
            _busyOverlay               = busyOverlay;
            _catalogRepository         = catalogRepository;
            _acquisitionServiceFactory = acquisitionServiceFactory;
            _notificationsService      = notificationsService;
            _catalogController         = catalogController;
            _container = container;
            _bookDownloadsRepository = bookDownloadsRepository;

            eventAggregator.Subscribe(this);

            _busyOverlay.Content  = UIStrings.BookInfoPage_Loading;
            _busyOverlay.Closable = true;
        }
コード例 #5
0
        protected BookmarkListBase(INavigationService navigationService, IBookmarkRepository bookmarkService, IEventAggregator eventAggregator)
        {
            _navigationService = navigationService;
            _bookmarkService   = bookmarkService;
            _eventAggregator   = eventAggregator;

            _eventAggregator.Subscribe(this);
        }
コード例 #6
0
 public BookmarkService(IBookmarkRepository repository)
 {
     _repository = repository;
     if (HttpContext.Current.Cache[CACHE_KEY] == null)
     {
         CacheInit(Enumerable.ToList <Bookmark>(_repository.GetAll()));
     }
 }
コード例 #7
0
 public BookmarkService(ICapPublisher capPublisher, IBookmarkRepository bookmarkRepository, IBookmarkMapper bookmarkMapper, ILogger <BookmarkService> logger, IUserProvider userProvider)
 {
     _capPublisher       = capPublisher;
     _bookmarkRepository = bookmarkRepository;
     _bookmarkMapper     = bookmarkMapper;
     _logger             = logger;
     _userProvider       = userProvider;
 }
コード例 #8
0
 public UserBookmarkListHandler(IUserRepository userRepository, IBookmarkRepository bookmarkRepository, IUriResolver uriResolver)
 {
     if (userRepository == null) throw new ArgumentNullException("userRepository");
     if (bookmarkRepository == null) throw new ArgumentNullException("bookmarkRepository");
     if (uriResolver == null) throw new ArgumentNullException("uriResolver");
     _userRepository = userRepository;
     _bookmarkRepository = bookmarkRepository;
     _uriResolver = uriResolver;
 }
コード例 #9
0
ファイル: UnitOfWork.cs プロジェクト: mh453Uol/MBExplorer
 public UnitOfWork(IBookmarkRepository bookmark,
                   IFolderRepository folders,
                   IItemRepository items,
                   BookmarkDbContext db)
 {
     Bookmarks = bookmark;
     Folders   = folders;
     Items     = items;
     _db       = db;
 }
コード例 #10
0
 public BookmarksController(ILogger <BookmarksController> logger, IBookmarkRepository repository,
                            IWebHostEnvironment env, IOptions <FaviconSettings> settings,
                            IServiceScopeFactory factory, IconFetcher fetcher)
 {
     _logger          = logger;
     _repository      = repository;
     _webHostEnv      = env;
     _faviconSettings = settings?.Value ?? new FaviconSettings();
     _servicesFactory = factory;
     _fetcher         = fetcher;
 }
コード例 #11
0
        public AccountController(
            IUserRepository userRepo,
            IBookmarkRepository bookMarkRepo,
            IRecipeRepository recipeRepo

            )
        {
            this.userRepo     = userRepo;
            this.bookMarkRepo = bookMarkRepo;
            this.recipeRepo   = recipeRepo;
        }
コード例 #12
0
ファイル: StoreTests.cs プロジェクト: bihe/bookmarks-dotnet
        public StoreTest()
        {
            context = SetupDbContext(nameof(StoreTest));
            context.Database.EnsureCreated();

            context.Bookmarks.RemoveRange(context.Bookmarks);
            context.SaveChanges();

            var logger = Mock.Of <ILogger <DbBookmarkRepository> >();

            repo = new DbBookmarkRepository(context, logger);
        }
コード例 #13
0
 public BookmarkSearchPageViewModel(
     INavigationService navigationService,
     IBookmarkRepository bookmarkRepository,
     BookmarksController bookmarksController,
     IBookRepository bookRepository,
     IBusyIndicatorManager busyIndicatorManager)
 {
     _navigationService    = navigationService;
     _bookmarkRepository   = bookmarkRepository;
     _bookmarksController  = bookmarksController;
     _bookRepository       = bookRepository;
     _busyIndicatorManager = busyIndicatorManager;
 }
コード例 #14
0
 public BookmarkSearchPageViewModel(
     INavigationService navigationService,
     IBookmarkRepository bookmarkRepository,
     BookmarksController bookmarksController,
     IBookRepository bookRepository,
     IBusyIndicatorManager busyIndicatorManager)
 {
     _navigationService = navigationService;
     _bookmarkRepository = bookmarkRepository;
     _bookmarksController = bookmarksController;
     _bookRepository = bookRepository;
     _busyIndicatorManager = busyIndicatorManager;
 }
コード例 #15
0
 public BookmarkAppService(
     IRepository <Bookmark, Guid> repository,
     IBookmarkRepository bookmarkRepository,
     ITagRepository tagRepository,
     ICategoryRepository categoryRepository,
     IDistributedCache <BookmarkDto> bookmarkCache,
     ILogger <BookmarkAppService> logger)
 {
     _bookmarkRepository = bookmarkRepository;
     _tagRepository      = tagRepository;
     _categoryRepository = categoryRepository;
     BookmarkCache       = bookmarkCache;
     _logger             = logger;
 }
コード例 #16
0
 public ThisBookBookmarksViewModel(
     INavigationService navigationService,
     BookmarksController bookmarksController, 
     IBookmarkRepository bookmarkService,
     IBookRepository bookService,
     IBusyIndicatorManager busyIndicatorManager,
     IEventAggregator eventAggregator) : base(navigationService, bookmarkService, eventAggregator)
 {
     _bookmarksController = bookmarksController;
     _bookmarkService = bookmarkService;
     _bookRepository = bookService;
     _busyIndicatorManager = busyIndicatorManager;
     DisplayName = UIStrings.BookmarksPivot_ThisBook;
 }
コード例 #17
0
 public ThisBookBookmarksViewModel(
     INavigationService navigationService,
     BookmarksController bookmarksController,
     IBookmarkRepository bookmarkService,
     IBookRepository bookService,
     IBusyIndicatorManager busyIndicatorManager,
     IEventAggregator eventAggregator) : base(navigationService, bookmarkService, eventAggregator)
 {
     _bookmarksController  = bookmarksController;
     _bookmarkService      = bookmarkService;
     _bookRepository       = bookService;
     _busyIndicatorManager = busyIndicatorManager;
     DisplayName           = UIStrings.BookmarksPivot_ThisBook;
 }
コード例 #18
0
 public BookmarksPivotViewModel(
     ThisBookBookmarksViewModel thisBookBookmarksViewModel,
     AllBooksBookmarksViewModel allBooksBookmarksViewModel,
     INavigationService navigationService,
     IBookRepository bookRepository,
     IBookmarkRepository bookmarkRepository,
     BookmarksController bookmarksController,
     BookTool bookTool)
 {
     _thisBookBookmarksViewModel = thisBookBookmarksViewModel;
     _allBooksBookmarksViewModel = allBooksBookmarksViewModel;
     _navigationService          = navigationService;
     _bookRepository             = bookRepository;
     _bookmarkRepository         = bookmarkRepository;
     _bookmarksController        = bookmarksController;
     _bookTool = bookTool;
 }
コード例 #19
0
 public BookmarkService(IUnitOfWork unitOfWork, IBookmarkRepository repository)
 {
     UnitOfWork         = unitOfWork;
     BookmarkRepository = repository;
 }
コード例 #20
0
 public BookmarkController(IBookmarkRepository repo)
 {
     _repo = repo;
 }
コード例 #21
0
ファイル: BookmarkService.cs プロジェクト: cole2295/DevText
 //private readonly static ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
 public BookmarkService(IUnitOfWork unitwork,IBookmarkRepository bookmarkRepository )
 {
     this.unitwork = unitwork;
     this.bookmarkRepository = bookmarkRepository;
 }
コード例 #22
0
 public BookmarkService(IBookmarkRepository repository)
 {
     this._repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
コード例 #23
0
 public GetAllBookmarksRequestHandler(IBookmarkRepository bookmarkRepository)
 {
     this.bookmarkRepository = bookmarkRepository ?? throw new ArgumentNullException(nameof(bookmarkRepository));
 }
コード例 #24
0
 public BookmarksController(IBookmarkRepository bookmarkRepository)
 {
     _bookmarkRepository = bookmarkRepository;
 }
コード例 #25
0
 public BookmarkService(IBookmarkRepository bookmarkRepository, IUnitOfWork unitOfWork)
 {
     _bookmarkRepository = bookmarkRepository;
     _unitOfWork         = unitOfWork;
 }
コード例 #26
0
 public BookmarksController(IBookmarkRepository bookmarkRepository)
 {
     this._bookmarkRepository = bookmarkRepository;
 }
コード例 #27
0
 public BookmarkBll(BusinessLocator p_BusinessLocator)
 {
     BookmarkRepo = p_BusinessLocator.ServiceLocator.BookmarkRepository;
     b            = p_BusinessLocator;
 }
コード例 #28
0
 public BookmarkService(IBookmarkRepository repository)
 {
     _repository = repository;
     if (HttpContext.Current.Cache[CACHE_KEY] == null)
         CacheInit(Enumerable.ToList<Bookmark>(_repository.GetAll()));
 }
コード例 #29
0
 BookmarksController CreateController(IBookmarkRepository repository)
 {
     return(new BookmarksController(Logger, repository, null, null, null, null));
 }
コード例 #30
0
 public DataServiceController(IBookmarkRepository bmRepo, ITagRepository tgRepo)
 {
     _BookmarkRepository = bmRepo;
     _TagRepository = tgRepo;
 }
コード例 #31
0
 public BookmarksService(IBookmarkRepository repository, ICurrentUser currentUser)
 {
     _repository = repository;
     _currentUser = currentUser;
 }
コード例 #32
0
 public HomeHandler(IBookmarkRepository bookmarkRepository)
 {
     if (bookmarkRepository == null) throw new ArgumentNullException("bookmarkRepository");
     _bookmarkRepository = bookmarkRepository;
 }
コード例 #33
0
 public GetBookmarkListQueryHandler(IBookmarkRepository bookmarkRepository, IMapper mapper)
 {
     _bookmarkRepository = bookmarkRepository;
     _mapper             = mapper;
 }
コード例 #34
0
 public AdminController(IBookmarkRepository bookmarkRepository)
 {
     _bookmarkRepository = bookmarkRepository;
 }
コード例 #35
0
 public BookmarkController(IBookmarkRepository BookmarkRepository, IMapper Mapper)
 {
     _BookmarkRepository = BookmarkRepository;
     _Mapper             = Mapper;
 }
コード例 #36
0
 public BookmarkService(IBookmarkRepository bookmarkRepository, IUserRepository userRepository)
 {
     _bookmarkRepository = bookmarkRepository;
     _userRepository     = userRepository;
 }
コード例 #37
0
 public BookmarksController()
 {
     _bookmarkRepository = new BookmarkRepository();
 }
コード例 #38
0
 public BookmarkService(IOptions <AppSettings> settings)
 {
     _bookmarkRepository = new BookmarkRepository(settings);
 }
コード例 #39
0
 public BookmarkService(IBookmarkRepository bookmarkRepository, IBookRepository bookRepository, ISyncService syncService)
 {
     _bookmarkRepository = bookmarkRepository;
     _bookRepository     = bookRepository;
     _syncService        = syncService;
 }
コード例 #40
0
 public BookmarkServices(IBookmarkRepository bookmarkRepository)
 {
     _bookmarkRepository = bookmarkRepository;
 }
コード例 #41
0
ファイル: BookmarksController.cs プロジェクト: feanz/Example
 public BookmarksController(IBookmarkRepository repository)
 {
     _repository = repository;
 }