Exemple #1
0
 protected UmbracoHttpHandler(IUmbracoContextAccessor umbracoContextAccessor, UmbracoHelper umbracoHelper, ServiceContext service, IProfilingLogger plogger)
 {
     UmbracoContextAccessor = umbracoContextAccessor;
     Logger          = plogger;
     ProfilingLogger = plogger;
     Services        = service;
     Umbraco         = umbracoHelper;
 }
Exemple #2
0
 protected ContentTypeControllerBase(ICultureDictionaryFactory cultureDictionaryFactory, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _cultureDictionaryFactory = cultureDictionaryFactory;
 }
 public AuthenticationController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper, Current.Mapper)
 {
 }
 public MyListService(IScopeProvider scopeProvider, IDoStuffRepository <MyList> baseRepository, IProfilingLogger logger)
     : base(scopeProvider, baseRepository, logger)
 {
 }
Exemple #5
0
 public UiExamplesMigrationComponent(IScopeProvider scopeProvider, IMigrationBuilder migrationBuilder, IKeyValueService keyValueService, IProfilingLogger profilingLogger)
 {
     _scopeProvider    = scopeProvider;
     _migrationBuilder = migrationBuilder;
     _keyValueService  = keyValueService;
     _profilingLogger  = profilingLogger;
 }
 protected UmbracoController(IGlobalSettings globalSettings, UmbracoContext umbracoContext, ServiceContext services, CacheHelper applicationCache, ILogger logger, IProfilingLogger profilingLogger)
 {
     GlobalSettings   = globalSettings;
     UmbracoContext   = umbracoContext;
     Services         = services;
     ApplicationCache = applicationCache;
     Logger           = logger;
     ProfilingLogger  = profilingLogger;
 }
Exemple #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TypeLoader"/> class.
 /// </summary>
 /// <param name="runtimeCache">The application runtime cache.</param>
 /// <param name="localTempPath">Files storage location.</param>
 /// <param name="logger">A profiling logger.</param>
 public TypeLoader(IAppPolicyCache runtimeCache, string localTempPath, IProfilingLogger logger)
     : this(runtimeCache, localTempPath, logger, true)
 {
 }
        public SchedulerComponent(IRuntimeState runtime,
                                  IContentService contentService, IAuditService auditService,
                                  HealthCheckCollection healthChecks, HealthCheckNotificationMethodCollection notifications,
                                  IScopeProvider scopeProvider, IUmbracoContextFactory umbracoContextFactory, IProfilingLogger logger)
        {
            _runtime               = runtime;
            _contentService        = contentService;
            _auditService          = auditService;
            _scopeProvider         = scopeProvider;
            _logger                = logger;
            _umbracoContextFactory = umbracoContextFactory;

            _healthChecks  = healthChecks;
            _notifications = notifications;
        }
 public DatabaseServerMessenger(
     IRuntimeState runtime, IScopeProvider scopeProvider, ISqlContext sqlContext, IProfilingLogger proflog, IGlobalSettings globalSettings,
     bool distributedEnabled, DatabaseServerMessengerOptions options)
     : base(distributedEnabled)
 {
     ScopeProvider      = scopeProvider ?? throw new ArgumentNullException(nameof(scopeProvider));
     _sqlContext        = sqlContext;
     _runtime           = runtime;
     _profilingLogger   = proflog ?? throw new ArgumentNullException(nameof(proflog));
     Logger             = proflog;
     Options            = options ?? throw new ArgumentNullException(nameof(options));
     _lastPruned        = _lastSync = DateTime.UtcNow;
     _syncIdle          = new ManualResetEvent(true);
     _distCacheFilePath = new Lazy <string>(() => GetDistCacheFilePath(globalSettings));
 }
 protected UmbracoAuthorizedController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, services, appCaches, profilingLogger, umbracoHelper)
 {
 }
Exemple #11
0
 public MediaController(PropertyEditorCollection propertyEditors, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _propertyEditors = propertyEditors ?? throw new ArgumentNullException(nameof(propertyEditors));
 }
Exemple #12
0
 public HtmlUrlParser(IContentSection contentSection, IProfilingLogger logger)
 {
     _contentSection = contentSection;
     _logger         = logger;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="UmbracoAuthorizedApiController"/> class with all its dependencies.
 /// </summary>
 protected UmbracoAuthorizedApiController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, CacheHelper applicationCache, IProfilingLogger logger, IRuntimeState runtimeState)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, applicationCache, logger, runtimeState)
 {
 }
 public BackgroundIndexRebuilder(IMainDom mainDom, IProfilingLogger logger, IndexRebuilder indexRebuilder)
 {
     _mainDom        = mainDom;
     _logger         = logger;
     _indexRebuilder = indexRebuilder;
 }
 public UmbProfileController(UmbracoContext umbracoContext, IUmbracoDatabaseFactory databaseFactory, ServiceContext services, CacheHelper applicationCache, ILogger logger, IProfilingLogger profilingLogger) : base(umbracoContext, databaseFactory, services, applicationCache, logger, profilingLogger)
 {
 }
 public ArticulateRssController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, IRssFeedGenerator feedGenerator) : base(globalSettings, umbracoContextAccessor, services, appCaches, profilingLogger, umbracoHelper)
 {
     FeedGenerator = feedGenerator;
 }
 public DataTypeController(PropertyEditorCollection propertyEditors, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _propertyEditors = propertyEditors;
 }
Exemple #18
0
 public MediaTreeController(UmbracoTreeSearcher treeSearcher, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper) : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _treeSearcher = treeSearcher;
 }
Exemple #19
0
 public MemberProfileController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ServiceContext serviceContext, AppCaches appCaches, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper) : base(globalSettings, umbracoContextAccessor, serviceContext, appCaches, profilingLogger, umbracoHelper)
 {
 }
 public EditTournamentTeamsSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory, ServiceContext serviceContext,
                                             AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper, ITournamentDataSource tournamentDataSource, ICacheClearer <Tournament> cacheClearer,
                                             ITournamentRepository tournamentRepository, IAuthorizationPolicy <Tournament> authorizationPolicy, IDateTimeFormatter dateTimeFormatter, IPostSaveRedirector postSaveRedirector)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _tournamentDataSource = tournamentDataSource ?? throw new ArgumentNullException(nameof(tournamentDataSource));
     _cacheClearer         = cacheClearer ?? throw new ArgumentNullException(nameof(cacheClearer));
     _tournamentRepository = tournamentRepository ?? throw new ArgumentNullException(nameof(tournamentRepository));
     _authorizationPolicy  = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _dateTimeFormatter    = dateTimeFormatter ?? throw new ArgumentNullException(nameof(dateTimeFormatter));
     _postSaveRedirector   = postSaveRedirector ?? throw new ArgumentNullException(nameof(postSaveRedirector));
 }
Exemple #21
0
 protected TreeController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _treeAttribute = GetTreeAttribute();
 }
 public BackOfficeController(ManifestParser manifestParser, UmbracoFeatures features, IGlobalSettings globalSettings, UmbracoContext umbracoContext, ServiceContext services, CacheHelper applicationCache, ILogger logger, IProfilingLogger profilingLogger, IRuntimeState runtimeState)
     : base(globalSettings, umbracoContext, services, applicationCache, logger, profilingLogger)
 {
     _manifestParser = manifestParser;
     _features       = features;
     _runtimeState   = runtimeState;
 }
 public ApplicationTreeController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor,
                                  ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger,
                                  IRuntimeState runtimeState, ITreeService treeService, ISectionService sectionService, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
     _treeService    = treeService;
     _sectionService = sectionService;
 }
Exemple #24
0
 public PackageFileInstallation(CompiledPackageXmlParser parser, IProfilingLogger logger)
 {
     _parser            = parser;
     _logger            = logger;
     _packageExtraction = new PackageExtraction();
 }
 public NestedContentManyValueConverter(IPublishedSnapshotAccessor publishedSnapshotAccessor, IPublishedModelFactory publishedModelFactory, IProfilingLogger proflog)
     : base(publishedSnapshotAccessor, publishedModelFactory, proflog)
 {
 }
Exemple #26
0
 protected UmbracoAuthorizedApiController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
 }
 public MemberTypeController(ICultureDictionaryFactory cultureDictionaryFactory, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
     : base(cultureDictionaryFactory, globalSettings, umbracoContextAccessor, sqlContext, services, appCaches, logger, runtimeState, umbracoHelper)
 {
 }
 public BlockListPropertyValueConverter(IProfilingLogger proflog, BlockEditorConverter blockConverter)
 {
     _proflog        = proflog;
     _blockConverter = blockConverter;
     _blockListEditorDataConverter = new BlockListEditorDataConverter();
 }
 public DeleteMatchLocationSurfaceController(IUmbracoContextAccessor umbracoContextAccessor, IUmbracoDatabaseFactory umbracoDatabaseFactory,
                                             ServiceContext serviceContext, AppCaches appCaches, ILogger logger, IProfilingLogger profilingLogger, UmbracoHelper umbracoHelper,
                                             IMatchLocationDataSource matchLocationDataSource, IMatchLocationRepository matchLocationRepository, IMatchListingDataSource matchDataSource,
                                             IAuthorizationPolicy <MatchLocation> authorizationPolicy, ICacheOverride cacheOverride)
     : base(umbracoContextAccessor, umbracoDatabaseFactory, serviceContext, appCaches, logger, profilingLogger, umbracoHelper)
 {
     _matchLocationDataSource = matchLocationDataSource ?? throw new System.ArgumentNullException(nameof(matchLocationDataSource));
     _matchLocationRepository = matchLocationRepository ?? throw new System.ArgumentNullException(nameof(matchLocationRepository));
     _matchDataSource         = matchDataSource ?? throw new ArgumentNullException(nameof(matchDataSource));
     _authorizationPolicy     = authorizationPolicy ?? throw new ArgumentNullException(nameof(authorizationPolicy));
     _cacheOverride           = cacheOverride ?? throw new ArgumentNullException(nameof(cacheOverride));
 }
Exemple #30
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Composers" /> class.
        /// </summary>
        /// <param name="composition">The composition.</param>
        /// <param name="composerTypes">The <see cref="IComposer" /> types.</param>
        /// <param name="enableDisableAttributes">The <see cref="EnableComposerAttribute" /> and/or <see cref="DisableComposerAttribute" /> attributes.</param>
        /// <param name="logger">The profiling logger.</param>
        /// <exception cref="ArgumentNullException">composition
        /// or
        /// composerTypes
        /// or
        /// enableDisableAttributes
        /// or
        /// logger</exception>

        public Composers(Composition composition, IEnumerable <Type> composerTypes, IEnumerable <Attribute> enableDisableAttributes, IProfilingLogger logger)
        {
            _composition             = composition ?? throw new ArgumentNullException(nameof(composition));
            _composerTypes           = composerTypes ?? throw new ArgumentNullException(nameof(composerTypes));
            _enableDisableAttributes = enableDisableAttributes ?? throw new ArgumentNullException(nameof(enableDisableAttributes));
            _logger = logger ?? throw new ArgumentNullException(nameof(logger));
        }