public ThreadAbortExceptionEnricher(IOptionsMonitor <CoreDebugSettings> coreDebugSettings, IHostingEnvironment hostingEnvironment, IMarchal marchal)
 {
     _coreDebugSettings  = coreDebugSettings.CurrentValue;
     _hostingEnvironment = hostingEnvironment;
     _marchal            = marchal;
     coreDebugSettings.OnChange(x => _coreDebugSettings = x);
 }
Example #2
0
        public ScopeProvider(
            IAmbientScopeStack ambientScopeStack,
            IAmbientScopeContextStack ambientContextStack,
            IDistributedLockingMechanismFactory distributedLockingMechanismFactory,
            IUmbracoDatabaseFactory databaseFactory,
            FileSystems fileSystems,
            IOptionsMonitor <CoreDebugSettings> coreDebugSettings,
            MediaFileManager mediaFileManager,
            ILoggerFactory loggerFactory,
            IEventAggregator eventAggregator)
        {
            DistributedLockingMechanismFactory = distributedLockingMechanismFactory;
            DatabaseFactory      = databaseFactory;
            _ambientScopeStack   = ambientScopeStack;
            _ambientContextStack = ambientContextStack;
            _fileSystems         = fileSystems;
            _coreDebugSettings   = coreDebugSettings.CurrentValue;
            _mediaFileManager    = mediaFileManager;
            _logger          = loggerFactory.CreateLogger <ScopeProvider>();
            _loggerFactory   = loggerFactory;
            _eventAggregator = eventAggregator;
            // take control of the FileSystems
            _fileSystems.IsScoped = () => AmbientScope != null && AmbientScope.ScopedFileSystems;

            coreDebugSettings.OnChange(x => _coreDebugSettings = x);
        }
Example #3
0
 public ScopeProvider(IUmbracoDatabaseFactory databaseFactory, FileSystems fileSystems, IOptions <CoreDebugSettings> coreDebugSettings, MediaFileManager mediaFileManager, ILogger <ScopeProvider> logger, ILoggerFactory loggerFactory, IRequestCache requestCache, IEventAggregator eventAggregator)
 {
     DatabaseFactory    = databaseFactory;
     _fileSystems       = fileSystems;
     _coreDebugSettings = coreDebugSettings.Value;
     _mediaFileManager  = mediaFileManager;
     _logger            = logger;
     _loggerFactory     = loggerFactory;
     _requestCache      = requestCache;
     _eventAggregator   = eventAggregator;
     // take control of the FileSystems
     _fileSystems.IsScoped = () => AmbientScope != null && AmbientScope.ScopedFileSystems;
 }
Example #4
0
        public ScopeProvider(
            IDistributedLockingMechanismFactory distributedLockingMechanismFactory,
            IUmbracoDatabaseFactory databaseFactory,
            FileSystems fileSystems,
            IOptionsMonitor <CoreDebugSettings> coreDebugSettings,
            ILoggerFactory loggerFactory,
            IRequestCache requestCache,
            IEventAggregator eventAggregator)
        {
            DistributedLockingMechanismFactory = distributedLockingMechanismFactory;
            DatabaseFactory    = databaseFactory;
            _fileSystems       = fileSystems;
            _coreDebugSettings = coreDebugSettings.CurrentValue;
            _logger            = loggerFactory.CreateLogger <ScopeProvider>();
            _loggerFactory     = loggerFactory;
            _requestCache      = requestCache;
            _eventAggregator   = eventAggregator;
            // take control of the FileSystems
            _fileSystems.IsScoped = () => AmbientScope != null && AmbientScope.ScopedFileSystems;

            coreDebugSettings.OnChange(x => _coreDebugSettings = x);
        }
 public ThreadAbortExceptionEnricher(IOptions <CoreDebugSettings> coreDebugSettings, IHostingEnvironment hostingEnvironment, IMarchal marchal)
 {
     _coreDebugSettings  = coreDebugSettings.Value;
     _hostingEnvironment = hostingEnvironment;
     _marchal            = marchal;
 }