Пример #1
0
 public StoreLocatorController(IComposerContext composerContext,
                               IStoreViewService storeViewService,
                               IStoreDirectoryViewService storeDirectoryViewService,
                               IStoreUrlProvider storeUrlProvider,
                               IBreadcrumbViewService breadcrumbViewService,
                               ILanguageSwitchService languageSwitchViewService) :
     base(composerContext, storeViewService, storeDirectoryViewService, storeUrlProvider, breadcrumbViewService, languageSwitchViewService)
 {
 }
Пример #2
0
 public StoreLocatorController(IStoreLocatorViewService storesListViewService,
                               IStoreViewService storeViewService,
                               IComposerContext composerContext,
                               IMapConfigurationViewService mapConfigurationViewService)
 {
     StoreLocatorViewService     = storesListViewService;
     ComposerContext             = composerContext;
     StoreViewService            = storeViewService;
     MapConfigurationViewService = mapConfigurationViewService;
 }
Пример #3
0
        public StoreContext(
            IComposerContext composerContext,
            IStoreViewService service,
            HttpRequestBase request,
            Lazy <IPreviewModeService> previewModeService)
        {
            ComposerContext    = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
            StoreViewService   = service ?? throw new ArgumentNullException(nameof(service));
            Request            = request ?? throw new ArgumentNullException(nameof(request));
            PreviewModeService = previewModeService ?? throw new ArgumentNullException(nameof(previewModeService));

            _viewModel = new Lazy <StoreViewModel>(() => GetStoreViewModelAsync().Result, true);
        }
Пример #4
0
 protected StoreLocatorBaseController(
     IComposerContext composerContext,
     IStoreViewService storeViewService,
     IStoreDirectoryViewService storeDirectoryViewService,
     IStoreUrlProvider storeUrlProvider,
     IBreadcrumbViewService breadcrumbViewService,
     ILanguageSwitchService languageSwitchService
     )
 {
     ComposerContext           = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     StoreViewService          = storeViewService ?? throw new ArgumentNullException(nameof(storeViewService));
     StoreDirectoryViewService = storeDirectoryViewService ?? throw new ArgumentNullException(nameof(storeDirectoryViewService));
     StoreUrlProvider          = storeUrlProvider ?? throw new ArgumentNullException(nameof(storeUrlProvider));
     BreadcrumbViewService     = breadcrumbViewService ?? throw new ArgumentNullException(nameof(breadcrumbViewService));
     LanguageSwitchService     = languageSwitchService ?? throw new ArgumentNullException(nameof(languageSwitchService));
 }
 public StoreController(IStoreViewService storeViewService,
                        IComposerContext composerContext)
 {
     StoreViewService = storeViewService;
     ComposerContext  = composerContext;
 }