コード例 #1
0
        public DefaultOrchardHost(
            IShellSettingsManager shellSettingsManager,
            IShellContextFactory shellContextFactory,
            IRunningShellTable runningShellTable,
            IProcessingEngine processingEngine,
            IExtensionLoaderCoordinator extensionLoaderCoordinator,
            IExtensionMonitoringCoordinator extensionMonitoringCoordinator,
            ICacheManager cacheManager,
            IHostLocalRestart hostLocalRestart,
            IHttpContextAccessor httpContextAccessor)
        {
            _shellSettingsManager           = shellSettingsManager;
            _shellContextFactory            = shellContextFactory;
            _runningShellTable              = runningShellTable;
            _processingEngine               = processingEngine;
            _extensionLoaderCoordinator     = extensionLoaderCoordinator;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _cacheManager        = cacheManager;
            _hostLocalRestart    = hostLocalRestart;
            _httpContextAccessor = httpContextAccessor;

            _tenantsToRestart = new ContextState <IList <ShellSettings> >("DefaultOrchardHost.TenantsToRestart", () => new List <ShellSettings>());

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
コード例 #2
0
        public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <ICoeveryHost> coeveryHost)
        {
            _shellContextFactory = shellContextFactory;
            _coeveryHost         = coeveryHost;

            _entries = new ContextState <IList <Entry> >("DefaultProcessingEngine.Entries", () => new List <Entry>());
        }
コード例 #3
0
        public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <IOrchardHost> orchardHost)
        {
            _shellContextFactory = shellContextFactory;
            _orchardHost         = orchardHost;

            _entries = new ContextState <IList <Entry> >("DefaultProcessingEngine.Entries", () => new List <Entry>());
        }
コード例 #4
0
ファイル: ShellFeatureUpdater.cs プロジェクト: mrs2020/Plato
 public ShellFeatureUpdater(
     IShellFeatureStore <ShellFeature> shellFeatureStore,
     IShellDescriptorManager shellDescriptorManager,
     IShellDescriptorStore shellDescriptorStore,
     IHttpContextAccessor httpContextAccessor,
     IShellContextFactory shellContextFactory,
     IDataMigrationBuilder migrationBuilder,
     IRunningShellTable runningShellTable,
     IOptions <PlatoOptions> platoOptions,
     ILogger <ShellFeatureUpdater> logger,
     IFeatureFacade featureFacade,
     IPlatoHost platoHost)
 {
     _platoOptions           = platoOptions;
     _featureFacade          = featureFacade;
     _migrationBuilder       = migrationBuilder;
     _shellDescriptorManager = shellDescriptorManager;
     _shellDescriptorStore   = shellDescriptorStore;
     _shellFeatureStore      = shellFeatureStore;
     _httpContextAccessor    = httpContextAccessor;
     _shellContextFactory    = shellContextFactory;
     _runningShellTable      = runningShellTable;
     _platoHost = platoHost;
     _logger    = logger;
 }
コード例 #5
0
        public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<IOrchardHost> orchardHost)
        {
            _shellContextFactory = shellContextFactory;
            _orchardHost = orchardHost;

            _entries = new ContextState<IList<Entry>>("DefaultProcessingEngine.Entries", () => new List<Entry>());
        }
コード例 #6
0
        public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<ICoeveryHost> coeveryHost)
        {
            _shellContextFactory = shellContextFactory;
            _coeveryHost = coeveryHost;

            _entries = new ContextState<IList<Entry>>("DefaultProcessingEngine.Entries", () => new List<Entry>());
        }
コード例 #7
0
 public OrchardContainerMiddleware(
     RequestDelegate next,
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory) {
     _next = next;
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory = shellContextFactory;
 }
コード例 #8
0
ファイル: SetUpService.cs プロジェクト: IrynaPanchuk97/plato
 public SetUpService(
     IShellContextFactory shellContextFactory,
     IShellSettings shellSettings,
     IPlatoHost platoHost)
 {
     _shellContextFactory = shellContextFactory;
     _shellSettings       = shellSettings;
     _platoHost           = platoHost;
 }
コード例 #9
0
 public OrchardContainerMiddleware(
     RequestDelegate next,
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory)
 {
     _next = next;
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
 }
コード例 #10
0
 public ShellDescriptorManager(
     IShellDescriptorStore shellDescriptorStore,
     IShellContextFactory shellContextFactory,
     IModuleManager moduleManager)
 {
     _shellDescriptorStore = shellDescriptorStore;
     _shellContextFactory  = shellContextFactory;
     _moduleManager        = moduleManager;
 }
コード例 #11
0
ファイル: TenantService.cs プロジェクト: Higea/Orchard
 public TenantService(
     IShellSettingsManager shellSettingsManager,
     IExtensionManager extensionManager,
     IShellContextFactory shellContextFactory,
     IShellContainerFactory shellContainerFactory) {
     _shellSettingsManager = shellSettingsManager;
     _extensionManager = extensionManager;
     _shellContextFactory = shellContextFactory;
     _shellContainerFactory = shellContainerFactory;
     Logger = NullLogger.Instance;
 }
コード例 #12
0
 public DefaultOrchardHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ILoggerFactory loggerFactory)
 {
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
     _runningShellTable    = runningShellTable;
     _logger = loggerFactory.CreateLogger <DefaultOrchardHost>();
 }
コード例 #13
0
ファイル: TenantSetUpService.cs プロジェクト: radtek/Plato
 public TenantSetUpService(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     ILogger <TenantSetUpService> logger,
     IPlatoHost platoHost)
 {
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
     _platoHost            = platoHost;
     _logger = logger;
 }
コード例 #14
0
 public DefaultOrchardHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ILogger<DefaultOrchardHost> logger)
 {
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory = shellContextFactory;
     _runningShellTable = runningShellTable;
     _logger = logger;
 }
コード例 #15
0
ファイル: DefaultPlatoHost.cs プロジェクト: radtek/Plato
 public DefaultPlatoHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ILogger <DefaultPlatoHost> logger)
 {
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
     _runningShellTable    = runningShellTable;
     _logger = logger;
 }
コード例 #16
0
 public TenantService(
     IShellSettingsManager shellSettingsManager,
     IExtensionManager extensionManager,
     IShellContextFactory shellContextFactory,
     IShellContainerFactory shellContainerFactory)
 {
     _shellSettingsManager  = shellSettingsManager;
     _extensionManager      = extensionManager;
     _shellContextFactory   = shellContextFactory;
     _shellContainerFactory = shellContainerFactory;
     Logger = NullLogger.Instance;
 }
コード例 #17
0
        public ConcurrentTaskService(
            ShellSettings shellSettings,
            IShellDescriptorManager shellDescriptorManager,
            IShellContextFactory shellContextFactory
            )
        {
            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _shellSettings          = shellSettings;
            _shellDescriptorManager = shellDescriptorManager;
            _shellContextFactory    = shellContextFactory;
        }
コード例 #18
0
        public DefaultHost(IExtensionLoaderCoordinator extensionLoaderCoordinator, ICacheManager cacheManager, IHostLocalRestart hostLocalRestart, IExtensionMonitoringCoordinator extensionMonitoringCoordinator, IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory)
        {
            _extensionLoaderCoordinator = extensionLoaderCoordinator;
            _cacheManager     = cacheManager;
            _hostLocalRestart = hostLocalRestart;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _shellSettingsManager           = shellSettingsManager;
            _shellContextFactory            = shellContextFactory;

            _tenantsToRestart = new ContextState <IList <ShellSettings> >("DefaultHost.TenantsToRestart", () => new List <ShellSettings>());

            Logger = NullLogger.Instance;
        }
コード例 #19
0
ファイル: ConcurrentTaskService.cs プロジェクト: dioptre/nkd
        public ConcurrentTaskService(
            ShellSettings shellSettings,
            IShellDescriptorManager shellDescriptorManager,
            IShellContextFactory shellContextFactory
            )
        {
            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _shellSettings = shellSettings;
            _shellDescriptorManager = shellDescriptorManager;
            _shellContextFactory = shellContextFactory;
        }
コード例 #20
0
ファイル: ShellHost.cs プロジェクト: china-live/OCore
 public ShellHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     IExtensionManager extensionManager,
     ILogger <ShellHost> logger)
 {
     _extensionManager     = extensionManager;
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
     _runningShellTable    = runningShellTable;
     _logger = logger;
 }
コード例 #21
0
 public ShellHost(IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, IExtensionManager extensionManager, ILogger <ShellHost> logger)
 {
     this._shellContexts         = new ConcurrentDictionary <string, ShellContext>();
     this._shellSemaphores       = new ConcurrentDictionary <string, SemaphoreSlim>();
     this._initializingSemaphore = new SemaphoreSlim(1);
     base();
     this._shellSettingsManager = shellSettingsManager;
     this._shellContextFactory  = shellContextFactory;
     this._runningShellTable    = runningShellTable;
     this._extensionManager     = extensionManager;
     this._logger = logger;
     return;
 }
コード例 #22
0
 public DefaultOrchardHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ControllerBuilder controllerBuilder)
 {
     //_containerProvider = containerProvider;
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory = shellContextFactory;
     _runningShellTable = runningShellTable;
     _controllerBuilder = controllerBuilder;
     Logger = NullLogger.Instance;
 }
コード例 #23
0
ファイル: DefaultHost.cs プロジェクト: l1183479157/RabbitHub
        public DefaultHost(IExtensionLoaderCoordinator extensionLoaderCoordinator, ICacheManager cacheManager, IHostLocalRestart hostLocalRestart, IExtensionMonitoringCoordinator extensionMonitoringCoordinator, IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory)
        {
            _extensionLoaderCoordinator = extensionLoaderCoordinator;
            _cacheManager = cacheManager;
            _hostLocalRestart = hostLocalRestart;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _shellSettingsManager = shellSettingsManager;
            _shellContextFactory = shellContextFactory;

            _tenantsToRestart = new ContextState<IList<ShellSettings>>("DefaultHost.TenantsToRestart", () => new List<ShellSettings>());

            Logger = NullLogger.Instance;
        }
コード例 #24
0
ファイル: DefaultPlatoHost.cs プロジェクト: lulzzz/Plato
 public DefaultPlatoHost(
     IShellSettingsManager shellSettingsManager,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     IBackgroundTaskManager taskManager,
     ILogger <DefaultPlatoHost> logger,
     IBroker broker)
 {
     _shellSettingsManager = shellSettingsManager;
     _shellContextFactory  = shellContextFactory;
     _runningShellTable    = runningShellTable;
     _taskManager          = taskManager;
     _logger = logger;
     _broker = broker;
 }
コード例 #25
0
        public DistributedShellHostedService(
            IShellHost shellHost,
            IShellContextFactory shellContextFactory,
            IShellSettingsManager shellSettingsManager,
            ILogger <DistributedShellHostedService> logger)
        {
            _shellHost            = shellHost;
            _shellContextFactory  = shellContextFactory;
            _shellSettingsManager = shellSettingsManager;
            _logger = logger;

            shellHost.LoadingAsync   += LoadingAsync;
            shellHost.ReleasingAsync += ReleasingAsync;
            shellHost.ReloadingAsync += ReloadingAsync;
        }
コード例 #26
0
 public TenantWorkContextAccessor(
     IShellSettingsManager shellSettingsManager,
     IOrchardHost orchardHost,
     IShellContextFactory shellContextFactory,
     ShellSettings shellSettings,
     IWorkContextAccessor wca
     // UrlHelper urlHelper
     )
 {
     _shellSettingsManager = shellSettingsManager;
     _orchardHost          = orchardHost;
     _shellContextFactory  = shellContextFactory;
     _shellSettings        = shellSettings;
     _wca = wca;
     //_urlHelper = urlHelper;
 }
コード例 #27
0
        public DatabaseShellsSettingsSources(
            Microsoft.Extensions.Configuration.IConfiguration configuration,
            IShellContextFactory shellContextFactory,
            IOptions <ShellOptions> shellOptions)

        {
            _options = configuration
                       .GetSection("OrchardCore")
                       .GetSectionCompat("OrchardCore_Shells_Database")
                       .Get <DatabaseShellsStorageOptions>()
                       ?? new DatabaseShellsStorageOptions();

            _shellContextFactory = shellContextFactory;

            _tenants = Path.Combine(shellOptions.Value.ShellsApplicationDataPath, "tenants.json");
        }
コード例 #28
0
 public TenantWorkContextAccessor(
     IShellSettingsManager shellSettingsManager,
     IOrchardHost orchardHost,
     IShellContextFactory shellContextFactory,
     ShellSettings shellSettings,
     IWorkContextAccessor wca
    // UrlHelper urlHelper
     )
 {
     _shellSettingsManager = shellSettingsManager;
     _orchardHost = orchardHost;
     _shellContextFactory = shellContextFactory;
     _shellSettings = shellSettings;
     _wca = wca;
     //_urlHelper = urlHelper;
 }
コード例 #29
0
 public ShellFeatureManager(
     IShellDescriptorManager shellDescriptorManager,
     IShellDescriptorStore shellDescriptorStore,
     IHttpContextAccessor httpContextAccessor,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ILogger <ShellFeatureManager> logger,
     IPlatoHost platoHost)
 {
     _shellDescriptorManager = shellDescriptorManager;
     _shellDescriptorStore   = shellDescriptorStore;
     _httpContextAccessor    = httpContextAccessor;
     _shellContextFactory    = shellContextFactory;
     _runningShellTable      = runningShellTable;
     _platoHost = platoHost;
     _logger    = logger;
 }
コード例 #30
0
 public SetupService(
     IShellHost orchardHost,
     IHostingEnvironment hostingEnvironment,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     IEnumerable <IRecipeHarvester> recipeHarvesters,
     ILogger <SetupService> logger,
     IStringLocalizer <SetupService> stringLocalizer
     )
 {
     _orchardHost         = orchardHost;
     _applicationName     = hostingEnvironment.ApplicationName;
     _shellContextFactory = shellContextFactory;
     _recipeHarvesters    = recipeHarvesters;
     _logger = logger;
     T       = stringLocalizer;
 }
コード例 #31
0
 public ShellFeatureManager(
     IShellDescriptorManager shellDescriptorManager,
     IShellDescriptorStore shellDescriptorStore,
     IShellContextFactory shellContextFactory,
     ILogger <ShellFeatureManager> logger,
     IShellSettings shellSettings,
     IPlatoHost platoHost,
     IBroker broker)
 {
     _shellDescriptorManager = shellDescriptorManager;
     _shellDescriptorStore   = shellDescriptorStore;
     _shellContextFactory    = shellContextFactory;
     _shellSettings          = shellSettings;
     _platoHost = platoHost;
     _logger    = logger;
     _broker    = broker;
 }
コード例 #32
0
ファイル: SetupService.cs プロジェクト: s2fx/s2fx-core
 public SetupService(
     IShellHost shellHost,
     IWebHostEnvironment hostingEnvironment,
     IShellContextFactory shellContextFactory,
     IRunningShellTable runningShellTable,
     ILogger <SetupService> logger,
     IStringLocalizerFactory stringLocalizerFactory,
     IStringLocalizer <SetupService> stringLocalizer,
     IHostApplicationLifetime applicationLifetime
     )
 {
     _shellHost           = shellHost;
     _applicationName     = hostingEnvironment.ApplicationName;
     _shellContextFactory = shellContextFactory;
     _logger = logger;
     T       = stringLocalizer;
     _applicationLifetime = applicationLifetime;
 }
コード例 #33
0
 /// <summary>
 /// Creates a new instance of <see cref="SetupService"/>.
 /// </summary>
 /// <param name="shellHost">The <see cref="IShellHost"/>.</param>
 /// <param name="hostingEnvironment">The <see cref="IHostEnvironment"/>.</param>
 /// <param name="shellContextFactory">The <see cref="IShellContextFactory"/>.</param>
 /// <param name="runningShellTable">The <see cref="IRunningShellTable"/>.</param>
 /// <param name="recipeHarvesters">A list of <see cref="IRecipeHarvester"/>s.</param>
 /// <param name="logger">The <see cref="ILogger"/>.</param>
 /// <param name="stringLocalizer">The <see cref="IStringLocalizer"/>.</param>
 /// <param name="applicationLifetime">The <see cref="IHostApplicationLifetime"/>.</param>
 public SetupService(
     IShellHost shellHost,
     IHostEnvironment hostingEnvironment,
     IShellContextFactory shellContextFactory,
     IEnumerable <IRecipeHarvester> recipeHarvesters,
     ILogger <SetupService> logger,
     IStringLocalizer <SetupService> stringLocalizer,
     IHostApplicationLifetime applicationLifetime
     )
 {
     _shellHost           = shellHost;
     _applicationName     = hostingEnvironment.ApplicationName;
     _shellContextFactory = shellContextFactory;
     _recipeHarvesters    = recipeHarvesters;
     _logger = logger;
     S       = stringLocalizer;
     _applicationLifetime = applicationLifetime;
 }
コード例 #34
0
        internal static Task <ShellContext> GetDatabaseContextAsync(this IShellContextFactory shellContextFactory, DatabaseShellsStorageOptions options)
        {
            if (options.DatabaseProvider == null)
            {
                throw new ArgumentNullException(nameof(options.DatabaseProvider),
                                                "The 'OrchardCore.Shells.Database' configuration section should define a 'DatabaseProvider'");
            }

            var settings = new ShellSettings()
            {
                Name  = ShellHelper.DefaultShellName,
                State = TenantState.Running
            };

            settings["DatabaseProvider"] = options.DatabaseProvider;
            settings["ConnectionString"] = options.ConnectionString;
            settings["TablePrefix"]      = options.TablePrefix;

            return(shellContextFactory.CreateDescribedContextAsync(settings, new ShellDescriptor()));
        }
コード例 #35
0
ファイル: DefaultOrchardHost.cs プロジェクト: wezmag/Coevery
        public DefaultOrchardHost(
            IShellSettingsManager shellSettingsManager,
            IShellContextFactory shellContextFactory,
            IRunningShellTable runningShellTable,
            IProcessingEngine processingEngine,
            IExtensionLoaderCoordinator extensionLoaderCoordinator,
            IExtensionMonitoringCoordinator extensionMonitoringCoordinator,
            ICacheManager cacheManager,
            IHostLocalRestart hostLocalRestart ) {
            _shellSettingsManager = shellSettingsManager;
            _shellContextFactory = shellContextFactory;
            _runningShellTable = runningShellTable;
            _processingEngine = processingEngine;
            _extensionLoaderCoordinator = extensionLoaderCoordinator;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _cacheManager = cacheManager;
            _hostLocalRestart = hostLocalRestart;
            _tenantsToRestart = Enumerable.Empty<ShellSettings>();

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
コード例 #36
0
 public SetupService(
     ShellSettings shellSettings,
     IOrchardHost orchardHost,
     IShellContextFactory shellContextFactory,
     ICompositionStrategy compositionStrategy,
     IExtensionManager extensionManager,
     IHttpContextAccessor httpContextAccessor,
     IRunningShellTable runningShellTable,
     IRecipeHarvester recipeHarvester,
     ILogger <SetupService> logger
     )
 {
     _shellSettings       = shellSettings;
     _orchardHost         = orchardHost;
     _shellContextFactory = shellContextFactory;
     _compositionStrategy = compositionStrategy;
     _extensionManager    = extensionManager;
     _httpContextAccessor = httpContextAccessor;
     _runningShellTable   = runningShellTable;
     _recipeHarvester     = recipeHarvester;
     _logger = logger;
 }
コード例 #37
0
ファイル: SetupService.cs プロジェクト: jchenga/Orchard2
 public SetupService(
     ShellSettings shellSettings,
     IOrchardHost orchardHost,
     IShellContextFactory shellContextFactory,
     ICompositionStrategy compositionStrategy,
     IExtensionManager extensionManager,
     IHttpContextAccessor httpContextAccessor,
     IRunningShellTable runningShellTable,
     IRecipeHarvester recipeHarvester,
     ILogger<SetupService> logger
     )
 {
     _shellSettings = shellSettings;
     _orchardHost = orchardHost;
     _shellContextFactory = shellContextFactory;
     _compositionStrategy = compositionStrategy;
     _extensionManager = extensionManager;
     _httpContextAccessor = httpContextAccessor;
     _runningShellTable = runningShellTable;
     _recipeHarvester = recipeHarvester;
     _logger = logger;
 }
コード例 #38
0
        public DefaultOrchardHost(
            IShellSettingsManager shellSettingsManager,
            IShellContextFactory shellContextFactory,
            IRunningShellTable runningShellTable,
            IProcessingEngine processingEngine,
            IExtensionLoaderCoordinator extensionLoaderCoordinator,
            IExtensionMonitoringCoordinator extensionMonitoringCoordinator,
            ICacheManager cacheManager,
            IHostLocalRestart hostLocalRestart)
        {
            _shellSettingsManager           = shellSettingsManager;
            _shellContextFactory            = shellContextFactory;
            _runningShellTable              = runningShellTable;
            _processingEngine               = processingEngine;
            _extensionLoaderCoordinator     = extensionLoaderCoordinator;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _cacheManager     = cacheManager;
            _hostLocalRestart = hostLocalRestart;
            _tenantsToRestart = Enumerable.Empty <ShellSettings>();

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
コード例 #39
0
ファイル: ShellFeatureUpdater.cs プロジェクト: radtek/Plato
 public ShellFeatureUpdater(
     IShellFeatureStore <ShellFeature> shellFeatureStore,
     IShellDescriptorManager shellDescriptorManager,
     IShellDescriptorStore shellDescriptorStore,
     IShellContextFactory shellContextFactory,
     IDataMigrationBuilder migrationBuilder,
     IOptions <PlatoOptions> platoOptions,
     ILogger <ShellFeatureUpdater> logger,
     IFeatureFacade featureFacade,
     IShellSettings shellSettings,
     IPlatoHost platoHost)
 {
     _shellDescriptorManager = shellDescriptorManager;
     _shellDescriptorStore   = shellDescriptorStore;
     _shellContextFactory    = shellContextFactory;
     _shellFeatureStore      = shellFeatureStore;
     _migrationBuilder       = migrationBuilder;
     _shellSettings          = shellSettings;
     _featureFacade          = featureFacade;
     _platoOptions           = platoOptions;
     _platoHost = platoHost;
     _logger    = logger;
 }
コード例 #40
0
        public DefaultCoeveryHost(
            IShellSettingsManager shellSettingsManager,
            IShellContextFactory shellContextFactory,
            IRunningShellTable runningShellTable,
            IProcessingEngine processingEngine,
            IExtensionLoaderCoordinator extensionLoaderCoordinator,
            IExtensionMonitoringCoordinator extensionMonitoringCoordinator,
            ICacheManager cacheManager,
            IHostLocalRestart hostLocalRestart )
        {
            _shellSettingsManager = shellSettingsManager;
            _shellContextFactory = shellContextFactory;
            _runningShellTable = runningShellTable;
            _processingEngine = processingEngine;
            _extensionLoaderCoordinator = extensionLoaderCoordinator;
            _extensionMonitoringCoordinator = extensionMonitoringCoordinator;
            _cacheManager = cacheManager;
            _hostLocalRestart = hostLocalRestart;

            _tenantsToRestart = new ContextState<IList<ShellSettings>>("DefaultCoeveryHost.TenantsToRestart", () => new List<ShellSettings>());

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
コード例 #41
0
 public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <IOrchardHost> orchardHost)
 {
     _shellContextFactory = shellContextFactory;
     _orchardHost         = orchardHost;
 }
コード例 #42
0
ファイル: ContainerManager.cs プロジェクト: jean/OrchardPs
 /// <summary>
 /// Initializes a new instance of the <see cref="ContainerManager"/> class.
 /// </summary>
 /// <param name="shellSettingsManager">The shell settings manager.</param>
 /// <param name="shellContextFactory">The shell context factory.</param>
 public ContainerManager(IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory)
 {
     this.shellSettingsManager = shellSettingsManager;
     this.shellContextFactory = shellContextFactory;
     this.tenantShells = new Dictionary<string, ShellContext>();
 }
コード例 #43
0
ファイル: DefaultOrchardHost.cs プロジェクト: Giahim/Brochard
 public DefaultOrchardHost(IShellContextFactory shellContextFactory,
     ILoggerFactory loggerFactory)
 {
     _shellContextFactory = shellContextFactory;
     _logger = loggerFactory.CreateLogger<DefaultOrchardHost>();
 }
コード例 #44
0
 public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<IOrchardHost> orchardHost) {
     _shellContextFactory = shellContextFactory;
     _orchardHost = orchardHost;
 }
コード例 #45
0
 public DefaultOrchardHost(IShellContextFactory shellContextFactory)
 {
     _shellContextFactory = shellContextFactory;
 }
コード例 #46
0
 public DefaultOrchardHost(IShellContextFactory shellContextFactory)
 {
     _shellContextFactory = shellContextFactory;
 }