示例#1
0
 public DatabaseMenuResolver(
     IComponentContext ctx,
     IMenuStorage menuStorage)
 {
     _ctx         = ctx;
     _menuStorage = menuStorage;
 }
示例#2
0
 public MenuResultFilter(
     IWidgetProvider widgetProvider,
     IMenuStorage menuStorage)
 {
     _widgetProvider = widgetProvider;
     _menuStorage    = menuStorage;
 }
示例#3
0
        public DatabaseMenu(
            string menuName,
            ICommonServices services,
            Lazy <ICatalogSearchService> catalogSearchService,
            Lazy <ICategoryService> categoryService,
            IMenuStorage menuStorage,
            ILogger logger,
            IMenuPublisher menuPublisher,
            DbQuerySettings querySettings,
            Lazy <CatalogSettings> catalogSettings,
            Lazy <SearchSettings> searchSettings,
            IEnumerable <Lazy <IMenuItemProvider, MenuItemProviderMetadata> > menuItemProviders)
        {
            Guard.NotEmpty(menuName, nameof(menuName));

            Name = menuName;

            Services = services;
            _catalogSearchService = catalogSearchService;
            _categoryService      = categoryService;
            _menuStorage          = menuStorage;
            _logger            = logger;
            MenuPublisher      = menuPublisher;
            _querySettings     = querySettings;
            _catalogSettings   = catalogSettings;
            _searchSettings    = searchSettings;
            _menuItemProviders = menuItemProviders.ToDictionarySafe(x => x.Metadata.ProviderName, x => x);
        }
示例#4
0
 public MenuActionFilter(
     IMenuStorage menuStorage,
     IMenuService menuService,
     WebViewPageHelper pageHelper,
     IPageAssetsBuilder pageAssetsBuilder)
 {
     _menuStorage       = menuStorage;
     _menuService       = menuService;
     _pageHelper        = pageHelper;
     _pageAssetsBuilder = pageAssetsBuilder;
 }
示例#5
0
 public MenuFilter(
     IMenuStorage menuStorage,
     IMenuService menuService,
     IWidgetProvider widgetProvider,
     IPageAssetBuilder assetBuilder,
     IDisplayHelper displayHelper)
 {
     _menuStorage    = menuStorage;
     _menuService    = menuService;
     _widgetProvider = widgetProvider;
     _assetBuilder   = assetBuilder;
     _displayHelper  = displayHelper;
 }
示例#6
0
 public MenuController(
     IMenuStorage menuStorage,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     IStoreMappingService storeMappingService,
     IAclService aclService,
     IEnumerable <Lazy <IMenuItemProvider,
                        MenuItemProviderMetadata> > menuItemProviders,
     AdminAreaSettings adminAreaSettings)
 {
     _menuStorage            = menuStorage;
     _languageService        = languageService;
     _localizedEntityService = localizedEntityService;
     _storeMappingService    = storeMappingService;
     _aclService             = aclService;
     _menuItemProviders      = menuItemProviders.ToDictionarySafe(x => x.Metadata.ProviderName, x => x);
     _adminAreaSettings      = adminAreaSettings;
 }
示例#7
0
 public TopicController(
     ITopicService topicService,
     ILanguageService languageService,
     ILocalizedEntityService localizedEntityService,
     IStoreMappingService storeMappingService,
     IUrlRecordService urlRecordService,
     IAclService aclService,
     IMenuStorage menuStorage,
     ILinkResolver linkResolver)
 {
     _topicService           = topicService;
     _languageService        = languageService;
     _localizedEntityService = localizedEntityService;
     _storeMappingService    = storeMappingService;
     _urlRecordService       = urlRecordService;
     _aclService             = aclService;
     _menuStorage            = menuStorage;
     _linkResolver           = linkResolver;
 }
示例#8
0
 public UserMenuFilter(IWidgetProvider widgetProvider, IMenuStorage menuStorage)
 {
     _widgetProvider = widgetProvider;
     _menuStorage    = menuStorage;
 }
示例#9
0
 public OrdersMeniController(IOrdersMeniStorage storage, IMenuStorage menuStorage, IOrdersStorage ordersStorage)
 {
     _storage       = storage;
     _menuStorage   = menuStorage;
     _ordersStorage = ordersStorage;
 }
示例#10
0
 public MenuController(IMenuStorage storage)
 {
     _storage = storage;
 }