Esempio n. 1
0
 public ArticulateRoutes(IUmbracoContextFactory umbracoContextFactory, ILogger logger, ContentUrls contentUrls, MetaWeblogHandlerFactory metaWeblogHandlerFactory)
 {
     _umbracoContextFactory    = umbracoContextFactory;
     _metaWeblogHandlerFactory = metaWeblogHandlerFactory;
     _logger      = logger;
     _contentUrls = contentUrls;
 }
 public UmbracoRequestMiddleware(
     ILogger <UmbracoRequestMiddleware> logger,
     IUmbracoContextFactory umbracoContextFactory,
     IRequestCache requestCache,
     IEventAggregator eventAggregator,
     IProfiler profiler,
     IHostingEnvironment hostingEnvironment,
     UmbracoRequestPaths umbracoRequestPaths,
     BackOfficeWebAssets backOfficeWebAssets,
     IOptionsMonitor <SmidgeOptions> smidgeOptions,
     IRuntimeState runtimeState,
     IVariationContextAccessor variationContextAccessor,
     IDefaultCultureAccessor defaultCultureAccessor)
     : this(
         logger,
         umbracoContextFactory,
         requestCache,
         eventAggregator,
         profiler,
         hostingEnvironment,
         umbracoRequestPaths,
         backOfficeWebAssets,
         smidgeOptions,
         runtimeState,
         variationContextAccessor,
         defaultCultureAccessor,
         StaticServiceProvider.Instance.GetRequiredService <IOptions <UmbracoRequestOptions> >())
 {
 }
        public UmbracoInjectedModule(
            IGlobalSettings globalSettings,
            IUmbracoContextAccessor umbracoContextAccessor,
            IPublishedSnapshotService publishedSnapshotService,
            IUserService userService,
            UrlProviderCollection urlProviders,
            IRuntimeState runtime,
            ILogger logger,
            IPublishedRouter publishedRouter,
            IVariationContextAccessor variationContextAccessor,
            IUmbracoContextFactory umbracoContextFactory)
        {
            _combinedRouteCollection = new Lazy <RouteCollection>(CreateRouteCollection);

            _globalSettings           = globalSettings;
            _umbracoContextAccessor   = umbracoContextAccessor;
            _publishedSnapshotService = publishedSnapshotService;
            _userService              = userService;
            _urlProviders             = urlProviders;
            _runtime                  = runtime;
            _logger                   = logger;
            _publishedRouter          = publishedRouter;
            _variationContextAccessor = variationContextAccessor;
            _umbracoContextFactory    = umbracoContextFactory;
        }
Esempio n. 4
0
 public AddSectionForAdmins(IProfilingLogger logger, IUmbracoContextFactory contextFactory, IScopeProvider scopeProvider, IUserService userService)
 {
     _logger        = logger;
     _context       = contextFactory;
     _scopeProvider = scopeProvider;
     _userService   = userService;
 }
Esempio n. 5
0
 public ContentCdnService(IEnumerable <ICdnApi> cdnApis, IConfigService configService, IContentTypeService contentTypeService, IUmbracoContextFactory umbracoContextFactory)
 {
     _cdnApis               = cdnApis;
     _configService         = configService;
     _contentTypeService    = contentTypeService;
     _umbracoContextFactory = umbracoContextFactory;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="UmbracoRequestMiddleware"/> class.
        /// </summary>
        public UmbracoRequestMiddleware(
            ILogger <UmbracoRequestMiddleware> logger,
            IUmbracoContextFactory umbracoContextFactory,
            IRequestCache requestCache,
            IEventAggregator eventAggregator,
            IProfiler profiler,
            IHostingEnvironment hostingEnvironment,
            UmbracoRequestPaths umbracoRequestPaths,
            BackOfficeWebAssets backOfficeWebAssets,
            IOptionsMonitor <SmidgeOptions> smidgeOptions,
            IRuntimeState runtimeState,
            IVariationContextAccessor variationContextAccessor,
            IDefaultCultureAccessor defaultCultureAccessor,
            IOptions <UmbracoRequestOptions> umbracoRequestOptions)
        {
            _logger = logger;
            _umbracoContextFactory    = umbracoContextFactory;
            _requestCache             = requestCache;
            _eventAggregator          = eventAggregator;
            _hostingEnvironment       = hostingEnvironment;
            _umbracoRequestPaths      = umbracoRequestPaths;
            _backOfficeWebAssets      = backOfficeWebAssets;
            _runtimeState             = runtimeState;
            _variationContextAccessor = variationContextAccessor;
            _defaultCultureAccessor   = defaultCultureAccessor;
            _umbracoRequestOptions    = umbracoRequestOptions;
            _smidgeOptions            = smidgeOptions.CurrentValue;
            _profiler = profiler as WebProfiler; // Ignore if not a WebProfiler

            smidgeOptions.OnChange(x => _smidgeOptions = x);
        }
 public SiteMapService(IUmbracoContextFactory contextFactory, IVariationContextAccessor variationContextAccessor, ILocalizationService localizationService, IDomainService domainService)
 {
     _contextFactory         = contextFactory;
     _variantContextAccessor = variationContextAccessor;
     _localizationService    = localizationService;
     _domainService          = domainService;
 }
Esempio n. 8
0
 public UnVersionService(IUnVersionConfig config, ILogger logger, IUmbracoContextFactory context, IContentService contentService)
 {
     _logger         = logger;
     _config         = config;
     _context        = context;
     _contentService = contentService;
 }
 public RebuildProcess(IUmbracoContextFactory umbracoContextFactory,
                       IExportTypeSettings exportTypeSettings)
 {
     _umbracoContextFactory = umbracoContextFactory;
     _exportTypeSettings    = exportTypeSettings;
     _sitesRepo             = new SitesRepository();
 }
Esempio n. 10
0
 protected GeneratorBase(IUmbracoContextFactory umbracoContextFactory, IStaticSiteStorer storer, IImageCropNameGenerator imageCropNameGenerator, IMediaFileSystem mediaFileSystem)
 {
     _umbracoContextFactory = umbracoContextFactory;
     _storer = storer;
     _imageCropNameGenerator = imageCropNameGenerator;
     _mediaFileSystem        = mediaFileSystem;
 }
Esempio n. 11
0
 public HeadlessController(IUmbracoContextFactory context)
 {
     _context       = context.EnsureUmbracoContext() ?? throw new Exception("UmbracoContext not found");
     _searcher      = ExamineSearchers.GetExternalIndexSearcher() ?? throw new Exception("ExternalIndex not found");
     _contentMapper = new UmbracoContentMapper(Umbraco);
     _camelCasingSerializerSettings.ContractResolver = new CamelCasePropertyNamesContractResolver();
 }
 public CacheService(IScopeProvider scopeProvider, ILogger logger, IUmbracoContextFactory umbracoContextFactory, IHtmlService htmlService)
 {
     _scopeProvider         = scopeProvider;
     _logger                = logger;
     _umbracoContextFactory = umbracoContextFactory;
     _htmlService           = htmlService;
 }
 public GuestbookGitHubComponent(IProfilingLogger logger, IRuntimeState runtime, IContentService contentService, IUmbracoContextFactory context, IGuestbookGitHubService guestbookGitHubService)
 {
     _context = context;
     _logger  = logger;
     _guestbookGitHubRunner  = new BackgroundTaskRunner <IBackgroundTask>("GuestbookGitHub", _logger);
     _guestbookGitHubService = guestbookGitHubService;
 }
 public CartSurfaceController(ISessionManager sessionManager, IOrderService orderService, IUnitOfWorkProvider uowProvider, IUmbracoContextFactory umbracoContextFactory)
 {
     _sessionManager        = sessionManager ?? throw new ArgumentNullException(nameof(sessionManager));
     _orderService          = orderService ?? throw new ArgumentNullException(nameof(orderService));
     _uowProvider           = uowProvider ?? throw new ArgumentNullException(nameof(uowProvider));
     _umbracoContextFactory = umbracoContextFactory ?? throw new ArgumentNullException(nameof(umbracoContextFactory));
 }
Esempio n. 15
0
 public SearchConfigurationComponent(IExamineManager examineManager, IUmbracoContextFactory contextFactory)
 {
     // inject ExamineManager
     _examineManager = examineManager;
     //
     _contextFactory = contextFactory;
 }
Esempio n. 16
0
        public uSyncStaticSiteService(UmbracoHelper helper,
                                      IEntityService entityService,
                                      IContentService contentService,
                                      SyncFileService syncFileService,
                                      uSyncMediaFileService mediaFileService,
                                      TemplateFileService templateFileService,
                                      IUmbracoContextFactory contextFactory,
                                      IProfilingLogger logger,
                                      uSyncPublisherConfig config,
                                      SyncStaticDeployerCollection deployers,
                                      IGlobalSettings settings)
        {
            this.helper        = helper;
            this.entityService = entityService;

            this.syncFileService     = syncFileService;
            this.mediaFileService    = mediaFileService;
            this.templateFileService = templateFileService;

            this.contentService = contentService;
            this.contextFactory = contextFactory;

            this.syncRoot   = Path.GetFullPath(Path.Combine(settings.LocalTempPath, "uSync", "pack"));
            this.configFile = Path.Combine(Umbraco.Core.IO.SystemDirectories.Config + "/uSync.Publish.config");

            this.deployers = deployers;

            this.logger = logger;
        }
Esempio n. 17
0
 public CloudPurgeComponent(ILogger logger, IConfigService configService, IContentCdnService contentCdnService, IUmbracoContextFactory umbracoContextFactory)
 {
     _logger                = logger;
     _configService         = configService;
     _contentCdnService     = contentCdnService;
     _umbracoContextFactory = umbracoContextFactory;
 }
Esempio n. 18
0
 public ErrorPageService(IUmbracoContextFactory contextFactory, IDomainService domainService, ILogger logger, Uri originalRequest = null)
 {
     _contextFactory   = contextFactory;
     _domainService    = domainService;
     _logger           = logger;
     _contextReference = _contextFactory.EnsureUmbracoContext();
     _originalRequest  = originalRequest ?? _contextReference.UmbracoContext.HttpContext.Request.Url;
 }
 public SpreakerFeed(IBackgroundTaskRunner <RecurringTaskBase> runner, int delayBeforeWeStart, int howOftenWeRepeat, IRuntimeState runtime, IProfilingLogger logger, IContentService contentService, IUmbracoContextFactory context)
     : base(runner, delayBeforeWeStart, howOftenWeRepeat)
 {
     _runtime        = runtime;
     _logger         = logger;
     _contentService = contentService;
     _context        = context;
 }
 public ImageSitemapBuilder(IUmbracoContextFactory contextFactory, IImageRepository imageRepository,
                            ImageSitemapConfiguration config)
     : base(config)
 {
     _contextFactory  = contextFactory;
     _imageRepository = imageRepository;
     _config          = config;
 }
Esempio n. 21
0
 public ContentTreeParser(IContentService contentService, IContentTypeService contentTypeService, IDataTypeService dataTypeService, IFileService fileService, IUmbracoContextFactory contextFactory)
 {
     _ContentService     = contentService;
     _ContentTypeService = contentTypeService;
     _DataTypeService    = dataTypeService;
     _FileService        = fileService;
     _ContextFactory     = contextFactory;
 }
Esempio n. 22
0
 public ErrorPagesComponent(IUmbracoContextFactory contextFactory, IDomainService domainService, ILocalizationService localizationService, ILogger logger, IVariationContextAccessor variationContextAccessor)
 {
     _contextFactory      = contextFactory;
     _domainService       = domainService;
     _localizationService = localizationService;
     _logger = logger;
     _variationContextAccessor = variationContextAccessor;
 }
Esempio n. 23
0
 public MemberSaveHandler(IContentService contentService, IUmbracoContextFactory contextFactory, ExamineService examineService)
 {
     _member         = new Published.Member(null);
     _physio         = new Published.Physiotherapist(null);
     _contentService = contentService;
     _contextFactory = contextFactory;
     _examineService = examineService;
 }
 public SiteBuilderComponent(IContentService contentService, IContentTypeService contentTypeService, IDataTypeService dataTypeService, IFileService fileService, IUmbracoContextFactory contextFactory)
 {
     _ContentService     = contentService;
     _ContentTypeService = contentTypeService;
     _DataTypeService    = dataTypeService;
     _FileService        = fileService;
     _ContextFactory     = contextFactory;
 }
Esempio n. 25
0
 public IndexerComponent(IExamineManager examineManager,
                         IUmbracoContextFactory umbracoContextFactory,
                         ILogger logger)
 {
     this.examineManager        = examineManager ?? throw new ArgumentNullException(nameof(examineManager));
     this.umbracoContextFactory = umbracoContextFactory ?? throw new ArgumentNullException(nameof(umbracoContextFactory));
     this.logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
 public SpreakerFeedComponent(IProfilingLogger logger, IRuntimeState runtime, IContentService contentService, IUmbracoContextFactory context)
 {
     _context            = context;
     _logger             = logger;
     _runtime            = runtime;
     _contentService     = contentService;
     _spreakerFeedRunner = new BackgroundTaskRunner <IBackgroundTask>("SpreakerFeed", _logger);
 }
Esempio n. 27
0
 public SearchComponent(IUmbracoContextFactory umbracoContextFactory, ISearchApplianceService searchApplianceService, ILogger logger, ISearchConfig searchConfig, ISearchIndexEntryHelper searchIndexEntryHelper, SyncPublisherFactory publisherFactory, SyncStepPublisherCollection publishers)
 {
     _umbracoContextFactory  = umbracoContextFactory;
     _searchApplianceService = searchApplianceService;
     _logger                 = logger;
     _searchConfig           = searchConfig;
     _searchIndexEntryHelper = searchIndexEntryHelper;
 }
Esempio n. 28
0
 public PublishedContentHelper(
     IUmbracoContextFactory umbracoContextFactory,
     IScopeProvider scopeProvider
     )
 {
     _umbracoContextFactory = umbracoContextFactory;
     _scopeProvider         = scopeProvider;
 }
Esempio n. 29
0
 public NodeHelper()
 {
     this.contentService      = ConnectorContext.ContentService;
     this.contentTypeService  = ConnectorContext.ContentTypeService;
     this.logger              = ConnectorContext.Logger;
     this.contextFactory      = ConnectorContext.ContextFactory;
     this.localizationService = ConnectorContext.LocalizationService;
 }
Esempio n. 30
0
 public GenerateController(
     IUmbracoContextFactory umbracoContextFactory,
     IExportTypeSettings exportTypeSettings)
 {
     _umbracoContextFactory = umbracoContextFactory;
     _exportTypeSettings    = exportTypeSettings;
     _sitesRepo             = new SitesRepository();
 }