public ProductService(IContentLoader contentLoader, UrlResolver urlResolver, ILinksRepository linksRepository, ICurrentMarket currentMarket) { _contentLoader = contentLoader; _urlResolver = urlResolver; _linksRepository = linksRepository; _currentMarket = currentMarket; }
public LinksController(ILinksRepository repo, IMapper mapper) { _repo = repo ?? throw new ArgumentNullException(nameof(repo)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public DataManager(IEntityBaseRepository entityBases, ILinksRepository links, IOurTeamRepository ourTeams, ITypesRepository types) { EntityBases = entityBases; Links = links; OurTeams = ourTeams; Types = types; }
public CartItemViewModelFactory( IContentLoader contentLoader, IPricingService pricingService, UrlResolver urlResolver, ICurrentMarket currentMarket, ICurrencyService currencyService, IPromotionService promotionService, AppContextFacade appContext, ILineItemCalculator lineItemCalculator, IProductService productService, IRelationRepository relationRepository, ILinksRepository linksRepository, ICartService cartService) { _contentLoader = contentLoader; _pricingService = pricingService; _urlResolver = urlResolver; _currentMarket = currentMarket; _currencyService = currencyService; _promotionService = promotionService; _appContext = appContext; _lineItemCalculator = lineItemCalculator; _productService = productService; _relationRepository = relationRepository; _cartService = cartService; _linksRepository = linksRepository; }
public LinksViewerController( IHttpContextIdentifier identifier, ILinksRepository linksRepository) { _Identifier = identifier ?? throw new ArgumentNullException(nameof(identifier)); _LinksRepository = linksRepository ?? throw new ArgumentNullException(nameof(linksRepository)); }
public FeedsService(IMapper mapper, IGeneralUsersService generalUsersService, ILinksService linksService, IGeneralUsersRepository generalUsersRepository, ILinksRepository linksRepository) { _mapper = mapper; _generalUsersService = generalUsersService; _linksService = linksService; _generalUsersRepository = generalUsersRepository; _linksRepository = linksRepository; }
public VotingService( ILinksRepository linksRepository, IVotesRepository votesRepository, IUserRepository userRepository) { _linksRepository = linksRepository; _votesRepository = votesRepository; _userRepository = userRepository; }
public LinksController(ILinksRepository linksRepo, ITagsRepository tagsRepo, IMapper mapper) { _linksRepo = linksRepo ?? throw new ArgumentNullException(nameof(linksRepo)); _tagsRepo = tagsRepo ?? throw new ArgumentNullException(nameof(tagsRepo)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); }
public FindHelper(ReadOnlyPricingLoader priceLoader, ILinksRepository linksRepository, IContentLoader contentLoader, UrlResolver urlResolver, IPermanentLinkMapper permanentLinkMapper, ReferenceConverter referenceConverter, IPriceService priceService, IWarehouseInventoryService inventoryService) { _priceLoader = priceLoader; _linksRepository = linksRepository; _contentLoader = contentLoader; _urlResolver = urlResolver; _permanentLinkMapper = permanentLinkMapper; _referenceConverter = referenceConverter; _priceService = priceService; _inventoryService = inventoryService; }
//构造器注入 public HomeController(IUserInfoRepository userInfoRepository, ITagsRepository tagsRepository, IArticleRepository articleRepository, ILinksRepository linksRepository, IUnitOfWork unitOfWork) { _userInfoRepository = userInfoRepository; _tagsRepository = tagsRepository; _articleRepository = articleRepository; _linksRepository = linksRepository; _unitOfWork = unitOfWork; }
public PromotionEntryService( ILinksRepository linksRepository, ICatalogSystem catalogSystem, IContentLoader contentLoader, IWarehouseInventoryService inventoryService, IWarehouseRepository warehouseRepository) { _contentLoader = contentLoader; _linksRepository = linksRepository; _catalogSystem = catalogSystem; _inventoryService = inventoryService; _warehouseRepository = warehouseRepository; }
public PromotionEntryService( ILinksRepository linksRepository, ICatalogSystem catalogSystem, IContentLoader contentLoader, IInventoryService inventoryService, IWarehouseRepository warehouseRepository) { _contentLoader = contentLoader; _linksRepository = linksRepository; _catalogSystem = catalogSystem; _inventoryService = inventoryService; _warehouseRepository = warehouseRepository; }
public static string GetUrl(this VariationContent variant, ILinksRepository linksRepository, UrlResolver urlResolver) { var productLink = variant.GetParentProducts(linksRepository).FirstOrDefault(); if (productLink == null) { return string.Empty; } var urlBuilder = new UrlBuilder(urlResolver.GetUrl(productLink)); if (variant.Code != null) { urlBuilder.QueryCollection.Add("variationCode", variant.Code); } return urlBuilder.ToString(); }
public static string GetUrl(this VariationContent variant, ILinksRepository linksRepository, UrlResolver urlResolver) { var productLink = variant.GetParentProducts(linksRepository).FirstOrDefault(); if (productLink == null) { return(string.Empty); } var urlBuilder = new UrlBuilder(urlResolver.GetUrl(productLink)); if (variant.Code != null) { urlBuilder.QueryCollection.Add("variationCode", variant.Code); } return(urlBuilder.ToString()); }
private EntryContentBase GetParent(CatalogContentBase content) { ILinksRepository linksRepository = ServiceLocator.Current.GetInstance <ILinksRepository>(); IContentLoader contentLoader = ServiceLocator.Current.GetInstance <IContentLoader>(); IEnumerable <Relation> parentRelations = linksRepository.GetRelationsByTarget(content.ContentLink); if (parentRelations.Any()) { Relation firstRelation = parentRelations.FirstOrDefault(); if (firstRelation != null) { var parentProductContent = contentLoader.Get <EntryContentBase>(firstRelation.Source); return(parentProductContent); } } return(null); }
/// <summary> /// Class Constructor /// </summary> /// <param name="linksRepository">IoC resolution for our Repository class.</param> public ApiController(ILinksRepository linksRepository) { repo = linksRepository; }
public LinksService(IGeneralUsersService generalUsersService, ILinksRepository linkRepository, IMapper mapper) { _generalUsersService = generalUsersService; _mapper = mapper; _linkRepository = linkRepository; }
public RedirectController(ILinksRepository linksRepository, IHttpContextAccessor accessor) { _repository = linksRepository; _accessor = accessor; }
public HomeController(ITasksRepository tasksRepository, ILinksRepository linksRepository) { this.TasksRepository = tasksRepository; this.LinksRepository = linksRepository; }
public LinksService(ILinksRepository linksRepository) { _linksRepository = linksRepository; }
public ShortLinkRedirectController(ILinksRepository linksRepository) { _LinksRepository = linksRepository ?? throw new ArgumentNullException(nameof(linksRepository)); }
public CreateCommentCommandHandler(ILinksRepository linksRepository, ICommentsRepository commentsRepository) { _linksRepository = linksRepository; _commentsRepository = commentsRepository; }
public GetLinkByIdHandler(ILinksRepository linksRepository, IMapper mapper) { _linksRepository = linksRepository; _mapper = mapper; }
public GetLinkRequestHandler(ILinksRepository linksRepository) { _linksRepository = linksRepository; }
public OrdersController(OrdersContext context) { _ordersRepository = new OrdersRepository(context); _productsRepository = new ProductsRepository(context); _linksRepository = new LinksRepository(context); }
public CreateLinkHandler(ILinksRepository linksRepository, ICommunityRepository communityRepository) { _linksRepository = linksRepository; _communityRepository = communityRepository; }
public MainController(ILinksRepository linksRepository, IApplicationSettings applicationSettings) { this.linksRepository = linksRepository; this.applicationSettings = applicationSettings; }
public LinkController() { _linksRepository = new LinksRepository(); }
public LinkController(ILinksRepository linksRepository) { _repository = linksRepository; }
public DeleteLinkCommandHandler(ILinksRepository linksRepository) { _linksRepository = linksRepository; }
public LinkApiController(ILinksRepository repository) { this.repository = repository; }
public RedirectController(ILinksRepository linksRepository) { _repository = linksRepository; }