public LikeService(IOptions <AppSettings> settings) { _likeRepository = new LikeRepository(settings); _postRepository = new PostRepository(settings); _commentRepository = new CommentRepository(settings); _publishToTopic = new PublishToTopic(); }
public LikesController(IUserRepository userRepository, ILikeRepository likeRepository ) { this._likeRepository = likeRepository; this._userRepository = userRepository; }
public CommentService(CommentsApiDbContext dbContext, IUserRepository userRepository, ICommentRepository commentRepository, ILikeRepository likeRepository) { _dbContext = dbContext; _userRepository = userRepository; _commentRepository = commentRepository; _likeRepository = likeRepository; }
public DatabaseInitializer(ApplicationDbContext context, ILikeRepository likeRepository, IUserRepository user) { _likeRepository = likeRepository; _context = context; _user = user; }
public UnitOfWork(StoreContext storeContext, IUserRepository userRepository, ICommentRepository commentRepository, CategoryRepository categoryRepository, ImageRepository imageRepository, ProductCharacteristicRepository productCharacteristicRepository, CharacteristicRepository characteristicRepository, ProductRepository productRepository, DeliveryRepository deliveryRepository, AddressRepository addressRepository, BrandRepository brandRepository, OrderDetailsRepository orderDetailsRepository, OrderRepository orderRepository, PackageRepository packageRepository, ILikeRepository likeRepository, NewsRepository newsRepository, SubscriberRepository subscriberRepository) { _storeContext = storeContext; UserRepository = userRepository; CommentRepository = commentRepository; CategoryRepository = categoryRepository; ImageRepository = imageRepository; ProductCharacteristicRepository = productCharacteristicRepository; CharacteristicRepository = characteristicRepository; ProductRepository = productRepository; DeliveryRepository = deliveryRepository; AddressRepository = addressRepository; BrandRepository = brandRepository; OrderDetailsRepository = orderDetailsRepository; OrderRepository = orderRepository; PackageRepository = packageRepository; LikeRepository = likeRepository; NewsRepository = newsRepository; SubscriberRepository = subscriberRepository; }
public LikeAddModule(ILikeRepository likeRepository, IPostRepository postRepository, ICommentRepository commentRepository, IUserRepository userRepository) { _likeRepository = likeRepository; _postRepository = postRepository; _commentRepository = commentRepository; _userRepository = userRepository; }
public UsersController(IUserRepository repo, ILikeRepository repo2, IDatingRepository grepo, IMapper mapper) { _mapper = mapper; _grepo = grepo; _repo = repo; _repo2 = repo2; }
private readonly IHostingEnvironment env; // Used to deal with server files. public AccountController( UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager, IPasswordHasher <IdentityUser> passwordHasher, IProfileRepository profileRepo, IPostRepository postRepo, IImageRepository imageRepo, IFriendRepository friendRepo, ILikeRepository likeRepo, ICommentRepository commentRepo, CurrentProfile currentProfile, IHostingEnvironment env) { this.userManager = userManager; this.signInManager = signInManager; this.passwordHasher = passwordHasher; this.profileRepo = profileRepo; this.postRepo = postRepo; this.imageRepo = imageRepo; this.friendRepo = friendRepo; this.likeRepo = likeRepo; this.commentRepo = commentRepo; this.currentProfile = currentProfile; this.env = env; }
public PostController(IPostRepository postRepository, IUserProfileRepository userProfileRepository, ILikeRepository likeRepository, IDisLikeRepository disLikeRepository) { _postRepository = postRepository; _likeRepository = likeRepository; _disLikeRepository = disLikeRepository; _userProfileRepository = userProfileRepository; }
public LikeArticleController(IArticleRepository repo, IUserRepository userRepo, ILikeRepository likeRepo, IClaim clame) { _repo = repo; _userRepo = userRepo; _likeRepo = likeRepo; _clame = clame; }
public UsersController(IDatingRepository datingRepository, IUserRepository userRepository, ILikeRepository likeRepository, IMapper mapper) { _datingRepository = datingRepository; _userRepository = userRepository; _likeRepository = likeRepository; _mapper = mapper; }
public LikeController(IUserRepository userRepository, IPictureRepository pictureRepository, ILikeRepository likeRepository) { this.userRepository = userRepository; this.pictureRepository = pictureRepository; this.likeRepository = likeRepository; userGet = new UserGet(userRepository); }
public CommentService(ICommentRepository commentRepository, ILikeRepository likeRepository, IUserRepository userRepository, IImageRepository imageRepository) { _commentRepository = commentRepository; _likeRepository = likeRepository; _userRepository = userRepository; _imageRepository = imageRepository; }
public PostService(IPostRepository postRepository, IPostQueryRepository postQueryRepository, IUnitOfWorks unitOfWorks, IMapper mapper, IUserContext userContext, IUserRepository userRepository, IFileService fileService, IHttpContextAccessor httpContextAccessor, ILikeRepository likeRepository, ILikeQueryRepository likeQueryRepository, GlobalSettings globalSettings, IUserQueryRepository userQueryRepository) { _postRepository = postRepository; _postQueryRepository = postQueryRepository; _unitOfWorks = unitOfWorks; _mapper = mapper; _userContext = userContext; _userRepository = userRepository; _fileService = fileService; _httpContextAccessor = httpContextAccessor; _likeRepository = likeRepository; _likeQueryRepository = likeQueryRepository; _globalSettings = globalSettings; _userQueryRepository = userQueryRepository; }
public PostController(IPostRepository repoParam, ICommentsRepository repoParametr, ILikeRepository likeRepos, IUserRepository users) { _repo = repoParam; _repository = repoParametr; _likeRep = likeRepos; _userRepos = users; }
public CommentService(IUnitOfWork <RutrackerContext> unitOfWork, IDateService dateService) : base(unitOfWork) { _dateService = dateService; _torrentRepository = _unitOfWork.GetRepository <ITorrentRepository>(); _commentRepository = _unitOfWork.GetRepository <ICommentRepository>(); _likeRepository = _unitOfWork.GetRepository <ILikeRepository>(); }
public UserController(IAccountRepository accountRepository, IMapper mapper, IPostRepository postRepository, ILikeRepository likeRepository) { _accountRepository = accountRepository; _mapper = mapper; _postRepository = postRepository; _likeRepository = likeRepository; }
public PhotoService(IUnitOfWork uow, IPhotoRepository photoRepository, ICommentRepository commentRepository, ILikeRepository likeRepository) { this.uow = uow; this.photoRepository = photoRepository; this.commentRepository = commentRepository; this.likeRepository = likeRepository; }
public CommentsController(ILikeRepository likeRepository, IEntityFileRepository entityFileRepository, ICommentThreadRepository commentThreadRepository, ICommentRepository commentRepository, IUserProfileRepository userProfileRepository) { _repoThread = commentThreadRepository; _repoComments = commentRepository; _repoUserProfile = userProfileRepository; _repoEntityFile = entityFileRepository; _repoLike = likeRepository; }
private void DisposeCore() { _userRepository = null; _likeRepository = null; _pictureRepository = null; _postRepository = null; _externalLoginRepository = null; _dbContext.Dispose(); }
public PostController(IPostRepository postRepository, IMapper mapper, IAccountRepository accountRepository, ILikeRepository likeRepository, ICommentRepository commentRepository) { _postRepository = postRepository; _mapper = mapper; _accountRepository = accountRepository; _likeRepository = likeRepository; _commentRepository = commentRepository; }
public FeedbackService( ILikeRepository likeRepository, ICommentRepository commentRepository, ILogWriterFactory logWriterFactory) { logWriter = logWriterFactory.CreateLogger <FeedbackService>(); this.likeRepository = likeRepository ?? throw new System.ArgumentNullException(nameof(likeRepository)); this.commentRepository = commentRepository ?? throw new System.ArgumentNullException(nameof(commentRepository)); }
public PostService(IPostRepository postRepository, IUnitOfWork unitOfWork, ICommentRepository commentRepository, ILikeRepository likeRepository, IUserRepository userRepository) { this.postRepository = postRepository; this.unitOfWork = unitOfWork; this.commentRepository = commentRepository; this.likeRepository = likeRepository; this.userRepository = userRepository; }
public PictureController(IUserRepository userRepository, IPictureRepository pictureRepository, IWebHostEnvironment hostEnvironment, IFolderRepository folderRepository, ILikeRepository likeRepository) { this.userRepository = userRepository; this.pictureRepository = pictureRepository; this.likeRepository = likeRepository; _hostEnv = hostEnvironment; this.folderRepository = folderRepository; userGet = new UserGet(userRepository); }
public ManagementUnitOfWork( DbContext context, IdentityDbContext <ApplicationUser> appContext, ILinkRepository linkRepository, IPageRepository pageRepository, ITenantRepository tenantRepository, IEronFileRepository fileRepository, IBannerSliderRepository bannerSliderRepository, IOfferRepository offerRepository, IInvoiceRepository invoiceRepository, IInvoiceItemRepository invoiceItemRepository, IInvoiceLogRepository invoiceLogRepository, IWishListRepository wishListRepository, ICartRepository cartRepository, IOrderRepository orderRepository, ITariffRepository tariffRepository, ITariffPriceRepository tariffPriceRepository, ITariffItemRepository tariffItemRepository, IProductRepository productRepository, IProductPriceRepository productPriceRepository, IProductPropertyRepository productPropertyRepository, IProductPropertyNameRepository productPropertyNameRepository, IProductCategoryRepository productCategoryRepository, IServiceReviewRepository serviceReviewRepository, ITariffCategoryRepository tariffCategoryRepository, IFinanceTransactionRepository financeTransactionRepository, IBlogRepository blogRepository, IBlogArchiveRepository blogArchiveRepository, ICommentRepository commentRepository, ILikeRepository likeRepository, IHashTagRepository hashTagRepository) : base(context) { AppContext = appContext; LinkRepository = linkRepository; PageRepository = pageRepository; TenantRepository = tenantRepository; FileRepository = fileRepository; BannerSliderRepository = bannerSliderRepository; OfferRepository = offerRepository; InvoiceRepository = invoiceRepository; InvoiceItemRepository = invoiceItemRepository; InvoiceLogRepository = invoiceLogRepository; WishListRepository = wishListRepository; CartRepository = cartRepository; OrderRepository = orderRepository; TariffRepository = tariffRepository; TariffPriceRepository = tariffPriceRepository; TariffItemRepository = tariffItemRepository; ProductRepository = productRepository; ProductPriceRepository = productPriceRepository; ProductPropertyRepository = productPropertyRepository; ProductPropertyNameRepository = productPropertyNameRepository; ProductCategoryRepository = productCategoryRepository; ServiceReviewRepository = serviceReviewRepository; TariffCategoryRepository = tariffCategoryRepository; FinanceTransactionRepository = financeTransactionRepository; BlogRepository = blogRepository; BlogArchiveRepository = blogArchiveRepository; CommentRepository = commentRepository; LikeRepository = likeRepository; HashTagRepository = hashTagRepository; }
public BaseController(IOperationResultRepository ORRepository, IUserRepository UserRep, ILikeRepository LikeRepository, IOperationRepository OperRep) { this.OperRep = OperRep; this.ORRepository = ORRepository; this.UserRep = UserRep; this.LikeRepository = LikeRepository; }
/// <summary> /// Initializes a new instance of the <see cref="LikesController"/> class. /// </summary> /// /// <param name="mapper">The mapper.</param> /// <param name="repository">The repository.</param> /// <param name="authorizationService">The authorization service.</param> public LikesController ( IMapper mapper, ILikeRepository repository, IAuthorizationService authorizationService ) : base(mapper, authorizationService) { this.Repository = repository; }
public UnitOfWork(PhotoAlbumContext context, IPhotoRepository photoRepository, IClientProfilesRepository clientProfilesRepository, ILikeRepository likeRepository) { _context = context ?? throw new ArgumentNullException(nameof(context)); ClientProfilesRepository = clientProfilesRepository ?? throw new ArgumentNullException(nameof(clientProfilesRepository)); PhotoRepository = photoRepository ?? throw new ArgumentNullException(nameof(photoRepository)); LikeRepository = likeRepository ?? throw new ArgumentNullException(nameof(likeRepository)); }
public QAService(IQuestionRepository questionRepository, IUnitOfWork unitOfWork, IValidator <Question> validator, IAnswerRepository answerRepository, ILikeRepository likeRepository) : base(questionRepository, unitOfWork, validator) { _questionRepository = questionRepository; _answerRepository = answerRepository; _likeRepository = likeRepository; }
public BaseController(IORRepository orrepository, IUserRepository UserRepository, IOperationRepository OperationRepository, ILikeRepository LikeRepository) { ORRepository = orrepository; this.UserRepository = UserRepository; this.OperationRepository = OperationRepository; this.LikeRepository = LikeRepository; }
public UserController(IUserService userService, IMapper mapper, IRecipeService recipeService, ISubscriptionRepository subscription, IUnitOfWork unitOfWork, ILikeRepository likeRepository, IMarkService markService) { this.subscriptionRepository = subscription; this.recipeService = recipeService; this.userService = userService; this.mapper = mapper; this.unitOfWork = unitOfWork; this.likeRepository = likeRepository; this.markService = markService; }
public CustomerController(ICustomerDataService customerService, ICustomerRepository customerRepo, IResourceRepository resourceRepo, IUserAccountRepository useraccountRepo, ILikeRepository likeRepo) { this._customerService = customerService; _customerRepo = customerRepo; _resourceRepo = resourceRepo; _useraccountRepo = useraccountRepo; _likeRepo = likeRepo; }
public ProblemController(IProblemRepository problemRepository, ICategoryRepository categoryRepository, IAnswerRepository answerRepository, IUserSolvedRepository userSolvedRepository, IUserAttemptedRepository userAttemptedRepository, IImageRepository imageRepository, ITagRepository tagRepository, ILikeRepository likeRepository, IDislikeRepository dislikeRepository, ICommentRepository commentRepository) { this.problemRepository = problemRepository; this.categoryRepository = categoryRepository; this.answerRepository = answerRepository; this.userAttemptedRepository = userAttemptedRepository; this.userSolvedRepository = userSolvedRepository; this.tagRepository = tagRepository; this.imageRepository = imageRepository; this.likeRepository = likeRepository; this.dislikeRepository = dislikeRepository; this.commentRepository = commentRepository; }
public LikesController(ITrackRepository trackRepository, ILikeRepository likeRepository) { this.trackRepository = trackRepository; this.likeRepository = likeRepository; }
public void Init() { // init repository this._dbContext = new ApplicationDbContext(); this._chatRepository = new ChatRepository(this._dbContext); this._friendRepository = new FriendRepository(this._dbContext); this._privateMessageRepository = new PrivateMessageRepository(this._dbContext); this._statusRepository = new StatusRepository(this._dbContext); this._statusMessageRepository = new StatusMessageRepository(this._dbContext); this._statusLocationRepository = new StatusLocationRepository(this._dbContext); this._statusImageRepository = new StatusImageRepository(this._dbContext); this._likeRepository = new LikeRepository(this._dbContext); this._shareRepository = new ShareRepository(this._dbContext); this._commentRepository = new CommentRepository(this._dbContext); this._newFeedRepository = new NewFeedsRepository(this._dbContext); // get current connectionId this._curConnectionId = this.Context.ConnectionId; // get chatViewModel of User via connectionId this._curUserChat = this._chatRepository.GetUserByConnectionId(ConnectedUsers, this.Context.ConnectionId); // get friendListId this._friendListId = this._friendRepository.GetFriendListId(this._curUserChat.UserId).ToList(); // get friendListOnline this._friendListOnline = this._chatRepository.GetFriendListOnline(ConnectedUsers, this._friendListId, this._curUserChat.UserId); // get friendListConnectionId this._friendListConnectionId_Online = this._chatRepository.GetFriendList_ConnectionId(this._friendListOnline); this._allUserRelate_ConnectionId = this._chatRepository.GetAllUserRelate_ConnectionId(this._friendListConnectionId_Online, this._curUserChat.ConnectionId); }
public CommentController(ICommentRepository commentRepository, ILikeRepository likeRepository) { _commentRepository = commentRepository; _likeRepository = likeRepository; }
// ninject will provide us with repo instance public LikesController(ILikeRepository likeRepository) { _likeRepository = likeRepository; }
public LikeService(ILikeRepository repo, IProjectService projectService) { this.repoLike = repo; this.serviceProject = projectService; }
public LikeDataService(ILikeRepository likeRepository, IUserService userService) { this._likeRepository = likeRepository; this._userService = userService; }
public LikeService(ILikeRepository likeRepository, IUnitOfWork unitOfWork) { _likeRepository = likeRepository; _unitOfWork = unitOfWork; _logger = LogManager.GetCurrentClassLogger(); }
public MappingManagerV2() { //注意 只能 查询不能有修改操作 _userAccountRepository = ServiceLocator.Current.Resolve<IUserAccountRepository>(); _vUserRoleRepository = ServiceLocator.Current.Resolve<IVUserRoleRepository>(); _promotionBrandRelationRepository = ServiceLocator.Current.Resolve<IPromotionBrandRelationRepository>(); _likeRepository = ServiceLocator.Current.Resolve<ILikeRepository>(); _couponRepository = ServiceLocator.Current.Resolve<ICouponRepository>(); _favoriteRepository = ServiceLocator.Current.Resolve<IFavoriteRepository>(); _pointRepository = ServiceLocator.Current.Resolve<IPointRepository>(); }
public LikeService(ILikeRepository likeRepository) { _likeRepository = likeRepository; }