Exemple #1
0
 public InsertContentToPageCommand(IContentService contentService, PageContentProjectionFactory projectionFactory,
                                   IWidgetService widgetService)
 {
     this.contentService    = contentService;
     this.projectionFactory = projectionFactory;
     this.widgetService     = widgetService;
 }
Exemple #2
0
 public SetupModel(
     UserManager <User> userManager,
     RoleManager <Role> roleManager,
     SignInManager <User> signInManager,
     IBlogPostService blogService,
     ICategoryService catService,
     ITagService tagService,
     ISettingService settingService,
     IThemeService themeService,
     IWidgetService widgetService,
     IPluginService pluginService,
     ILogger <SetupModel> logger)
 {
     _userManager       = userManager;
     _roleManager       = roleManager;
     _signInManager     = signInManager;
     _blogSvc           = blogService;
     _catSvc            = catService;
     _tagSvc            = tagService;
     _settingSvc        = settingService;
     _themeService      = themeService;
     _widgetSvc         = widgetService;
     this.pluginService = pluginService;
     _logger            = logger;
 }
        public DashboardService(
            [NotNull] IWidgetService widgetService,
            [NotNull] IBudgetBucketRepository bucketRepository,
            [NotNull] IBudgetRepository budgetRepository,
            [NotNull] ILogger logger,
            [NotNull] MonitorableDependencies monitorableDependencies)
        {
            if (widgetService == null)
            {
                throw new ArgumentNullException(nameof(widgetService));
            }

            if (bucketRepository == null)
            {
                throw new ArgumentNullException(nameof(bucketRepository));
            }

            if (budgetRepository == null)
            {
                throw new ArgumentNullException(nameof(budgetRepository));
            }

            if (logger == null)
            {
                throw new ArgumentNullException(nameof(logger));
            }
            if (monitorableDependencies == null) throw new ArgumentNullException(nameof(monitorableDependencies));

            this.widgetService = widgetService;
            this.bucketRepository = bucketRepository;
            this.budgetRepository = budgetRepository;
            this.logger = logger;
            this.monitoringServices = monitorableDependencies;
            this.monitoringServices.DependencyChanged += OnMonitoringServicesDependencyChanged;
        }
Exemple #4
0
        public static void Main(string[] args)
        {
            // create service collection
            IServiceCollection services = new ServiceCollection();

            // add descriptors for interfaces
            services.AddTransient <IWidgetRepository, WidgetRepository>();
            services.AddTransient <IWidgetService, WidgetService>();

            // create service provider
            IServiceProvider provider = services.BuildServiceProvider();

            // resolve the IWidgetService
            IWidgetService service = provider.GetService <IWidgetService>();

            // use the resolved Widget service
            List <Widget> widgets = service.GetAllWidgets();

            // if everything resolved, the list of hard-coded widgts will come back from the WidgetService
            foreach (var widget in widgets)
            {
                Console.WriteLine("Widget Details:");
                Console.WriteLine("  Id:" + widget.Id);
                Console.WriteLine("  Name: " + widget.Name);
                Console.WriteLine("\n");
            }

            Console.Read();
        }
Exemple #5
0
        public WidgetServiceTest()
        {
            // cache and logger
            var serviceProvider = new ServiceCollection().AddMemoryCache().AddLogging().BuildServiceProvider();
            var cache           = new MemoryDistributedCache(serviceProvider.GetService <IOptions <MemoryDistributedCacheOptions> >());
            var loggerTheme     = serviceProvider.GetService <ILoggerFactory>().CreateLogger <ThemeService>();
            var loggerWidget    = serviceProvider.GetService <ILoggerFactory>().CreateLogger <WidgetService>();

            // mock ContentRootPath to return current dir
            var hostingEnvMock = new Mock <IWebHostEnvironment>();

            hostingEnvMock.Setup(env => env.ContentRootPath).Returns(Directory.GetCurrentDirectory());

            // mock CoreSettings
            var settingSvcMock = new Mock <ISettingService>();

            settingSvcMock.Setup(svc => svc.GetSettingsAsync <CoreSettings>())
            .Returns(Task.FromResult(new CoreSettings {
                Theme = "MyTheme"
            }));

            // services
            themeService  = new ThemeService(hostingEnvMock.Object, cache, metaRepoMock.Object, loggerTheme);
            widgetService = new WidgetService(metaRepoMock.Object, themeService, cache, settingSvcMock.Object, hostingEnvMock.Object, loggerWidget);
        }
Exemple #6
0
 public PluginModelFactory(IAclSupportedModelFactory aclSupportedModelFactory,
                           IBaseAdminModelFactory baseAdminModelFactory,
                           IExternalAuthenticationService externalAuthenticationService,
                           ILocalizationService localizationService,
                           ILocalizedModelFactory localizedModelFactory,
                           IOfficialFeedManager officialFeedManager,
                           IPaymentService paymentService,
                           IPluginFinder pluginFinder,
                           IShippingService shippingService,
                           IStoreMappingSupportedModelFactory storeMappingSupportedModelFactory,
                           IWidgetService widgetService,
                           TaxSettings taxSettings)
 {
     this._aclSupportedModelFactory      = aclSupportedModelFactory;
     this._baseAdminModelFactory         = baseAdminModelFactory;
     this._externalAuthenticationService = externalAuthenticationService;
     this._localizationService           = localizationService;
     this._localizedModelFactory         = localizedModelFactory;
     this._officialFeedManager           = officialFeedManager;
     this._paymentService  = paymentService;
     this._pluginFinder    = pluginFinder;
     this._shippingService = shippingService;
     this._storeMappingSupportedModelFactory = storeMappingSupportedModelFactory;
     this._widgetService = widgetService;
     this._taxSettings   = taxSettings;
 }
Exemple #7
0
 public SetupModel(
     IWebHostEnvironment hostingEnvironment,
     UserManager <User> userManager,
     RoleManager <Role> roleManager,
     SignInManager <User> signInManager,
     IBlogPostService blogService,
     IPageService pageService,
     ICategoryService catService,
     INavigationService navigationService,
     ISettingService settingService,
     IThemeService themeService,
     IPluginService pluginService,
     IWidgetService widgetService,
     ILogger <SetupModel> logger)
 {
     this.hostingEnvironment = hostingEnvironment;
     _userManager            = userManager;
     _roleManager            = roleManager;
     _signInManager          = signInManager;
     _blogSvc               = blogService;
     this.pageService       = pageService;
     _catSvc                = catService;
     this.navigationService = navigationService;
     this.settingService    = settingService;
     _themeService          = themeService;
     this.pluginService     = pluginService;
     _widgetSvc             = widgetService;
     _logger                = logger;
 }
 public CachedWidgetService(
     IDistributedCache distributedCache,
     IWidgetService innerWidgetService)
 {
     DistributedCache   = distributedCache;
     InnerWidgetService = innerWidgetService ?? throw new ArgumentNullException(nameof(innerWidgetService));
 }
 public FolderController(
     IIndexProvider indexProvider,
     IContentOwnershipHelper contentOwnershipHelper,
     ICRMContentOwnershipService crmContentOwnershipService,
     IExtendedContentManager extendedContentManager,
     ITransactionManager transactionManager,
     IWidgetService widgetService,
     IThemeAwareViewEngine themeAwareViewEngine,
     IShapeFactory shapeFactory,
     IContentManager contentManager,
     IOrchardServices services,
     IDisplayHelperFactory displayHelperFactory,
     IBusinessUnitService businessUnitService,
     ISiteService siteService,
     IBasicDataService basicDataService,
     IContentDefinitionManager contentDefinitionManager,
     IIndexManager indexManager,
     IWorkContextAccessor workContextAccessor,
     IActivityStreamService activityStreamService,
     IContentItemDescriptorManager contentItemDescriptorManager)
     : base(ContentTypes.FolderContentType, "Folder_Edit", indexProvider, services, crmContentOwnershipService, transactionManager, extendedContentManager, contentManager, widgetService, themeAwareViewEngine, shapeFactory, displayHelperFactory, basicDataService, contentOwnershipHelper, activityStreamService, contentItemDescriptorManager)
 {
     this.T      = NullLocalizer.Instance;
     this.Logger = NullLogger.Instance;
 }
 public SetupEcommerceWidgets(IWidgetService widgetService, IDocumentService documentService, IFormAdminService formAdminService, IFileService fileService)
 {
     _widgetService = widgetService;
     _documentService = documentService;
     _formAdminService = formAdminService;
     _fileService = fileService;
 }
Exemple #11
0
 public OverriddenTaxController(AvalaraTaxManager avalaraTaxManager,
                                IGenericAttributeService genericAttributeService,
                                ILocalizationService localizationService,
                                IPermissionService permissionService,
                                ISettingService settingService,
                                IStaticCacheManager cacheManager,
                                ITaxCategoryService taxCategoryService,
                                ITaxModelFactory taxModelFactory,
                                ITaxService taxService,
                                IWidgetService widgetService,
                                IWorkContext workContext,
                                TaxSettings taxSettings,
                                WidgetSettings widgetSettings) : base(permissionService,
                                                                      settingService,
                                                                      taxCategoryService,
                                                                      taxModelFactory,
                                                                      taxService,
                                                                      taxSettings)
 {
     this._avalaraTaxManager       = avalaraTaxManager;
     this._genericAttributeService = genericAttributeService;
     this._localizationService     = localizationService;
     this._permissionService       = permissionService;
     this._settingService          = settingService;
     this._cacheManager            = cacheManager;
     this._taxCategoryService      = taxCategoryService;
     this._taxModelFactory         = taxModelFactory;
     this._taxService     = taxService;
     this._widgetService  = widgetService;
     this._workContext    = workContext;
     this._taxSettings    = taxSettings;
     this._widgetSettings = widgetSettings;
 }
 public ContentOwnershipController(
     IMasterDetailPermissionManager masterDetailPermissionManager,
     IBasicDataService basicDataService,
     IActivityStreamService activityStreamService,
     IWorkContextAccessor workContextAccessor,
     IIndexProvider indexProvider,
     IOrchardServices orchardServices,
     IWidgetService widgetService,
     ICRMContentOwnershipService contentOwnershipService,
     IContentOwnershipHelper contentOwnershipHelper,
     IRepository <UserRolesPartRecord> userRolesRepository,
     IRepository <ContentItemPermissionDetailRecord> permissionDetailRecordRepository)
 {
     this.masterDetailPermissionManager = masterDetailPermissionManager;
     this.basicDataService      = basicDataService;
     this.activityStreamService = activityStreamService;
     this.workContextAccessor   = workContextAccessor;
     this.indexProvider         = indexProvider;
     this.T = NullLocalizer.Instance;
     this.contentOwnershipHelper           = contentOwnershipHelper;
     this.userRolesRepository              = userRolesRepository;
     this.contentOwnershipService          = contentOwnershipService;
     this.orchardServices                  = orchardServices;
     this.widgetService                    = widgetService;
     this.permissionDetailRecordRepository = permissionDetailRecordRepository;
 }
 public PluginController(ExternalAuthenticationSettings externalAuthenticationSettings,
                         IUserActivityService userActivityService,
                         IEventPublisher eventPublisher,
                         IExternalAuthenticationService externalAuthenticationService,
                         ILocalizationService localizationService,
                         IPermissionService permissionService,
                         IPluginFinder pluginFinder,
                         IPluginModelFactory pluginModelFactory,
                         ISettingService settingService,
                         IUploadService uploadService,
                         IWebHelper webHelper,
                         IWidgetService widgetService,
                         WidgetSettings widgetSettings)
 {
     this._externalAuthenticationSettings = externalAuthenticationSettings;
     this._userActivityService            = userActivityService;
     this._eventPublisher = eventPublisher;
     this._externalAuthenticationService = externalAuthenticationService;
     this._localizationService           = localizationService;
     this._permissionService             = permissionService;
     this._pluginFinder       = pluginFinder;
     this._pluginModelFactory = pluginModelFactory;
     this._settingService     = settingService;
     this._uploadService      = uploadService;
     this._webHelper          = webHelper;
     this._widgetService      = widgetService;
     this._widgetSettings     = widgetSettings;
 }
Exemple #14
0
 public SetupEcommerceWidgets(IWidgetService widgetService, IDocumentService documentService, IFormAdminService formAdminService, IFileService fileService)
 {
     _widgetService    = widgetService;
     _documentService  = documentService;
     _formAdminService = formAdminService;
     _fileService      = fileService;
 }
 public PluginModelFactory(IAclSupportedModelFactory aclSupportedModelFactory,
                           IBaseAdminModelFactory baseAdminModelFactory,
                           IExternalAuthenticationService externalAuthenticationService,
                           ILocalizationService localizationService,
                           ILocalizedModelFactory localizedModelFactory,
                           IOfficialFeedManager officialFeedManager,
                           IPaymentService paymentService,
                           IPluginService pluginService,
                           IShippingService shippingService,
                           IStaticCacheManager cacheManager,
                           IStoreMappingSupportedModelFactory storeMappingSupportedModelFactory,
                           IWidgetService widgetService,
                           IWorkContext workContext,
                           TaxSettings taxSettings,
                           ILogger logger)
 {
     _aclSupportedModelFactory      = aclSupportedModelFactory;
     _baseAdminModelFactory         = baseAdminModelFactory;
     _externalAuthenticationService = externalAuthenticationService;
     _localizationService           = localizationService;
     _localizedModelFactory         = localizedModelFactory;
     _officialFeedManager           = officialFeedManager;
     _paymentService  = paymentService;
     _pluginService   = pluginService;
     _shippingService = shippingService;
     _cacheManager    = cacheManager;
     _storeMappingSupportedModelFactory = storeMappingSupportedModelFactory;
     _widgetService = widgetService;
     _workContext   = workContext;
     _taxSettings   = taxSettings;
     _logger        = logger;
 }
Exemple #16
0
        public DatabasesSizeWidgetController
            (IDatabasesSizeService databasesService, IWidgetService widgetService, ISqlServerDataService sqlServerDataService)

        {
            _sqlServerDataService = sqlServerDataService;
            _widgetService        = widgetService;
            _databasesService     = databasesService;
        }
        public JobsWidgetController
            (IJobsService jobsService, IWidgetService widgetService, ISqlServerDataService sqlServerDataService)

        {
            _sqlServerDataService = sqlServerDataService;
            _widgetService        = widgetService;
            _jobsService          = jobsService;
        }
Exemple #18
0
 public WidgetController(IWidgetService widgetService,
                         IThemeContext themeContext,
                         ICacheManager cacheManager)
 {
     _widgetService = widgetService;
     _themeContext  = themeContext;
     _cacheManager  = cacheManager;
 }
Exemple #19
0
 public WidgetController(IWidgetService widgetService)
 {
     if (widgetService == null)
     {
         throw new ArgumentNullException("widgetService");
     }
     _widgetService = widgetService;
 }
 public WidgetViewComponent(IStoreContext storeContext, ICacheBase cacheManager,
                            IWidgetService widgetService, IThemeContext themeContext)
 {
     _storeContext  = storeContext;
     _cacheBase     = cacheManager;
     _widgetService = widgetService;
     _themeContext  = themeContext;
 }
Exemple #21
0
        public static Widget FromString(IWidgetService service, string serialized)
        {
            var widget = JsonConvert.DeserializeObject<Widget>(serialized);
            if (widget != null)
                widget._widgetService = service;

            return widget;
        }
 public ValuesController(IWidgetService widgetService)
 {
     if (widgetService == null)
     {
         throw new ArgumentNullException(nameof(widgetService));
     }
     WidgetService = widgetService;
 }
 public WidgetController(IWidgetService widgetService, 
     IStoreContext storeContext,
     ICacheManager cacheManager)
 {
     this._widgetService = widgetService;
     this._storeContext = storeContext;
     this._cacheManager = cacheManager;
 }
Exemple #24
0
 public WidgetWebService(IStoreContext storeContext, ICacheManager cacheManager,
                         IWidgetService widgetService, IThemeContext themeContext)
 {
     this._storeContext  = storeContext;
     this._cacheManager  = cacheManager;
     this._widgetService = widgetService;
     this._themeContext  = themeContext;
 }
Exemple #25
0
 public WidgetViewModelService(IStoreContext storeContext, ICacheManager cacheManager,
                               IWidgetService widgetService, IThemeContext themeContext)
 {
     _storeContext  = storeContext;
     _cacheManager  = cacheManager;
     _widgetService = widgetService;
     _themeContext  = themeContext;
 }
        public WidgetGridController
            (ICpuService cpuBaseService, IWidgetService widgetService, ISqlServerDataService sqlServerDataService)

        {
            _sqlServerDataService = sqlServerDataService;
            _widgetService        = widgetService;
            _cpuBaseService       = cpuBaseService;
        }
Exemple #27
0
 public WidgetController(IWidgetService widgetService, IWidgetTemplateService widgetTemplateService,
                         ICookie cookie, IPackageInstallerProvider packageInstallerProvider)
 {
     _widgetService         = widgetService;
     _widgetTemplateService = widgetTemplateService;
     _cookie = cookie;
     _packageInstallerProvider = packageInstallerProvider;
 }
Exemple #28
0
 public WidgetController(IWidgetService widgetService,
     IStoreContext storeContext,
     IWidgetControllerCacheWriter cacheWriter)
 {
     _widgetService = widgetService;
     _storeContext = storeContext;
     _cacheWriter = cacheWriter;
 }
Exemple #29
0
 public ProductCarouselWidget(IWidgetService widgetService, IProductService productService, IModelMapper modelMapper, IMediaAccountant mediaAccountant, IProductModelFactory productModelFactory)
 {
     _widgetService       = widgetService;
     _productService      = productService;
     _modelMapper         = modelMapper;
     _mediaAccountant     = mediaAccountant;
     _productModelFactory = productModelFactory;
 }
Exemple #30
0
 public SavePageHtmlContentCommand(IContentService contentService, ICmsConfiguration configuration,
                                   IOptionService optionsService, IWidgetService widgetService)
 {
     this.contentService = contentService;
     this.configuration  = configuration;
     this.optionsService = optionsService;
     this.widgetService  = widgetService;
 }
Exemple #31
0
 public WidgetViewModelService(IStoreContext storeContext, IEnumerable <ICacheManager> cacheManager,
                               IWidgetService widgetService, IThemeContext themeContext)
 {
     _storeContext  = storeContext;
     _cacheManager  = cacheManager.First(o => o.GetType() == typeof(MemoryCacheManager));
     _widgetService = widgetService;
     _themeContext  = themeContext;
 }
Exemple #32
0
 public WidgetController(IWidgetService widgetService, WidgetSettings widgetSettings
                         , ISettingService settingService, IPluginFinder pluginFinder)
 {
     this._widgetService  = widgetService;
     this._widgetSettings = widgetSettings;
     this._settingService = settingService;
     this._pluginFinder   = pluginFinder;
 }
 public WidgetController(IWidgetService widgetService,
                         IStoreContext storeContext,
                         ICacheManager cacheManager)
 {
     this._widgetService = widgetService;
     this._storeContext  = storeContext;
     this._cacheManager  = cacheManager;
 }
 public void Init()
 {
     _finder   = new Mock <IPluginFinder>();
     _settings = new WidgetSettings();
     _finder.Setup(f => f.GetPlugins <IWidgetPlugin>(It.IsAny <LoadPluginsMode>(), It.IsAny <string>(), It.IsAny <string>()))
     .Returns(GetFakeListOfPlugins());
     _widgedService = new WidgetService(_finder.Object, _settings);
 }
Exemple #35
0
 public WidgetController(
     IWidgetService widgetService,
     WidgetSettings widgetSettings,
     PluginMediator pluginMediator)
 {
     _widgetService  = widgetService;
     _widgetSettings = widgetSettings;
     _pluginMediator = pluginMediator;
 }
Exemple #36
0
 public WidgetController(IWidgetService widgetService,
     IPermissionService permissionService, ISettingService settingService,
     WidgetSettings widgetSettings)
 {
     this._widgetService = widgetService;
     this._permissionService = permissionService;
     this._settingService = settingService;
     this._widgetSettings = widgetSettings;
 }
 public HomePageViewModel(ICurrentlySelectedFactory currentlySelectedFactory, INavigationService navigationService, IWidgetService widgetService) : base(currentlySelectedFactory)
 {
     Title = "My Home!!!";
     this.navigationService = navigationService;
     this.widgetService     = widgetService;
     AddWidgetCommand       = new Command(() => AddWidget());
     ShowWidgetsCommand     = new Command(() => ShowWidgets());
     Widgets = new ObservableCollection <Widget>();
 }
Exemple #38
0
 public WidgetController(IWidgetService widgetService,
     ILocalizationService localizationService, IWorkContext workContext,
     IPermissionService permissionService, ICustomerActivityService customerActivityService)
 {
     this._widgetService = widgetService;
     this._localizationService = localizationService;
     this._workContext = workContext;
     this._permissionService = permissionService;
     this._customerActivityService = customerActivityService;
 }
Exemple #39
0
 public WidgetControllerTests()
 {
     Kernel.Bind<ISetWidgetAdminViewData>().ToConstant(A.Fake<ISetWidgetAdminViewData>());
     _documentService = A.Fake<IDocumentService>();
     _widgetService = A.Fake<IWidgetService>();
     _widgetController = new WidgetController(_documentService, _widgetService)
     {
         ReferrerOverride = "http://www.example.com/"
     };
 }
        public WidgetController(IWidgetService widgetService,
            IPermissionService permissionService, ISettingService settingService,
            WidgetSettings widgetSettings, IPluginFinder pluginFinder)
		{
            this._widgetService = widgetService;
            this._permissionService = permissionService;
            this._settingService = settingService;
            this._widgetSettings = widgetSettings;
            this._pluginFinder = pluginFinder;
		}
 public DefaultPagesApiOperations(IPagesService pages, IPageService page, IContentService content, IWidgetService widget, IWidgetsService widgets,
     IRedirectsService redirects, IRedirectService redirect, ISitemapService sitemap)
 {
     Pages = pages;
     Page = page;
     Content = content;
     Widget = widget;
     Widgets = widgets;
     Redirect = redirect;
     Redirects = redirects;
     Sitemap = sitemap;
 }
Exemple #42
0
 public ContentManager(IApplicationService applicationService, IPageService pageService,
                       IFolderService folderService, ITemplateService templateService,
                       IWidgetService widgetService, IResourceService resourceService,
                       IPluginService pluginService, IMediaService mediaService)
 {
     Application = applicationService;
     Page = pageService;
     Folder = folderService;
     Template = templateService;
     Widget = widgetService;
     Resources = resourceService;
     Plugin = pluginService;
     Media = mediaService;
 }
Exemple #43
0
 public PostController(ILog log, ILocalizationService localizationService,
                       ISiteService siteService,
                       IUserService userService,
                       IContentItemService<Post> contentItemService,
                       IContentItemService<Arashi.Core.Domain.Page> contentItemServiceForPage,
                       ICommentService commentService,
                       ICategoryService categoryService,
                       ITagService tagService,
                       ISearchService searchService,
                       IWidgetService widgetService,
                       IMessageService messageService)
     : base(log, localizationService, siteService, userService, contentItemService, contentItemServiceForPage, commentService, categoryService, tagService, searchService, widgetService, messageService)
 {
     this.log = log;
 }
 public DefaultWidgetSelector(
     IWidgetService widgetService, 
     ITopicService topicService, 
     IStoreContext storeContext, 
     ICacheManager cacheManager, 
     IWorkContext workContext, 
     IDbContext dbContext,
     Lazy<IEnumerable<IWidget>> simpleWidgets)
 {
     this._widgetService = widgetService;
     this._topicService = topicService;
     this._storeContext = storeContext;
     this._cacheManager = cacheManager;
     this._workContext = workContext;
     this._dbContext = dbContext;
     this._simpleWidgets = simpleWidgets;
 }
        public DefaultWidgetSelector(
            IWidgetService widgetService, 
            ITopicService topicService, 
            IStoreContext storeContext, 
            ICacheManager cacheManager, 
            IWorkContext workContext, 
            IDbContext dbContext,
			IWidgetProvider widgetProvider,
			ICommonServices services)
        {
            this._widgetService = widgetService;
            this._topicService = topicService;
            this._storeContext = storeContext;
            this._cacheManager = cacheManager;
            this._workContext = workContext;
            this._dbContext = dbContext;
			this._widgetProvider = widgetProvider;
			this._services = services;
        }
Exemple #46
0
 public PluginService(IWidgetService widgetService)
 {
     this.widgetService = widgetService;
 }
 public WidgetController(IWidgetService widgetService, 
     IStoreContext storeContext)
 {
     this._widgetService = widgetService;
     this._storeContext = storeContext;
 }
Exemple #48
0
 public WidgetController(IWorkContext workContext, IRepository<string> repository, IWidgetService widgetService)
     : base(workContext, repository)
 {
     this.widgetService = widgetService;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WidgetController"/> class.
 /// </summary>
 public WidgetController()
 {
     widgetService = ServiceLocator.Current.GetInstance<IWidgetService>();
     widgetLocaleService = ServiceLocator.Current.GetInstance<IWidgetLocaleService>();
 }
Exemple #50
0
 public WidgetController(IWidgetService widgetService)
 {
     this._widgetService = widgetService;
 }
Exemple #51
0
 public Widget(IWidgetService service)
 {
     _widgetService = service;
 }
Exemple #52
0
 public WidgetsController(ILog log, IWidgetService widgetService, ILocalizationService localizationService, IUserService userService, ISiteService siteService)
     : base(log, localizationService, userService, siteService)
 {
     this.log = log;
      this.widgetService = widgetService;
 }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="log"></param>
        /// <param name="localizationService"></param>
        /// <param name="siteService"></param>
        /// <param name="userService"></param>
        /// <param name="contentItemService"></param>
        /// <param name="contentItemServiceForPage"></param>
        /// <param name="commentService"></param>
        /// <param name="categoryService"></param>
        /// <param name="tagService"></param>
        /// <param name="searchService"></param>
        /// <param name="widgetService"></param>
        /// <param name="messageService"></param>
        protected ContentControllerBase( ILog log, 
                                       ILocalizationService localizationService,
                                       ISiteService siteService,
                                       IUserService userService,
                                       IContentItemService<Post> contentItemService,
                                       IContentItemService<Page> contentItemServiceForPage,
                                       ICommentService commentService,
                                       ICategoryService categoryService,
                                       ITagService tagService,
                                       ISearchService searchService,
                                       IWidgetService widgetService,
                                       IMessageService messageService)
        {
            this.log = log;
             this.localizationService = IoC.Resolve<ILocalizationService>();
             this.userService = IoC.Resolve<IUserService>();
             this.siteService = IoC.Resolve<ISiteService>();
             this.categoryService = IoC.Resolve<ICategoryService>();
             this.tagService = IoC.Resolve<ITagService>();
             this.contentItemService = contentItemService;
             this.contentItemServiceForPage = contentItemServiceForPage;
             this.commentService = commentService;
             this.searchService = searchService;
             this.widgetService = widgetService;
             this.messageService = messageService;

             registeredWidgetComponents = new List<IWidgetComponent>();

             currentCulture = Thread.CurrentThread.CurrentUICulture;
        }
Exemple #54
0
 public WidgetController(IDocumentService documentService, IWidgetService widgetService)
 {
     _documentService = documentService;
     _widgetService = widgetService;
 }