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; }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <ICoeveryHost> coeveryHost) { _shellContextFactory = shellContextFactory; _coeveryHost = coeveryHost; _entries = new ContextState <IList <Entry> >("DefaultProcessingEngine.Entries", () => new List <Entry>()); }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <IOrchardHost> orchardHost) { _shellContextFactory = shellContextFactory; _orchardHost = orchardHost; _entries = new ContextState <IList <Entry> >("DefaultProcessingEngine.Entries", () => new List <Entry>()); }
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; }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<IOrchardHost> orchardHost) { _shellContextFactory = shellContextFactory; _orchardHost = orchardHost; _entries = new ContextState<IList<Entry>>("DefaultProcessingEngine.Entries", () => new List<Entry>()); }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<ICoeveryHost> coeveryHost) { _shellContextFactory = shellContextFactory; _coeveryHost = coeveryHost; _entries = new ContextState<IList<Entry>>("DefaultProcessingEngine.Entries", () => new List<Entry>()); }
public OrchardContainerMiddleware( RequestDelegate next, IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory) { _next = next; _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; }
public SetUpService( IShellContextFactory shellContextFactory, IShellSettings shellSettings, IPlatoHost platoHost) { _shellContextFactory = shellContextFactory; _shellSettings = shellSettings; _platoHost = platoHost; }
public ShellDescriptorManager( IShellDescriptorStore shellDescriptorStore, IShellContextFactory shellContextFactory, IModuleManager moduleManager) { _shellDescriptorStore = shellDescriptorStore; _shellContextFactory = shellContextFactory; _moduleManager = moduleManager; }
public TenantService( IShellSettingsManager shellSettingsManager, IExtensionManager extensionManager, IShellContextFactory shellContextFactory, IShellContainerFactory shellContainerFactory) { _shellSettingsManager = shellSettingsManager; _extensionManager = extensionManager; _shellContextFactory = shellContextFactory; _shellContainerFactory = shellContainerFactory; Logger = NullLogger.Instance; }
public DefaultOrchardHost( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, ILoggerFactory loggerFactory) { _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _runningShellTable = runningShellTable; _logger = loggerFactory.CreateLogger <DefaultOrchardHost>(); }
public TenantSetUpService( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, ILogger <TenantSetUpService> logger, IPlatoHost platoHost) { _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _platoHost = platoHost; _logger = logger; }
public DefaultOrchardHost( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, ILogger<DefaultOrchardHost> logger) { _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _runningShellTable = runningShellTable; _logger = logger; }
public DefaultPlatoHost( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, ILogger <DefaultPlatoHost> logger) { _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _runningShellTable = runningShellTable; _logger = logger; }
public ConcurrentTaskService( ShellSettings shellSettings, IShellDescriptorManager shellDescriptorManager, IShellContextFactory shellContextFactory ) { T = NullLocalizer.Instance; Logger = NullLogger.Instance; _shellSettings = shellSettings; _shellDescriptorManager = shellDescriptorManager; _shellContextFactory = shellContextFactory; }
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; }
public ShellHost( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, IExtensionManager extensionManager, ILogger <ShellHost> logger) { _extensionManager = extensionManager; _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _runningShellTable = runningShellTable; _logger = logger; }
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; }
public DefaultOrchardHost( IShellSettingsManager shellSettingsManager, IShellContextFactory shellContextFactory, IRunningShellTable runningShellTable, ControllerBuilder controllerBuilder) { //_containerProvider = containerProvider; _shellSettingsManager = shellSettingsManager; _shellContextFactory = shellContextFactory; _runningShellTable = runningShellTable; _controllerBuilder = controllerBuilder; Logger = NullLogger.Instance; }
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; }
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; }
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; }
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; }
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"); }
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; }
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; }
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; }
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; }
/// <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; }
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())); }
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; }
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; }
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; }
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; }
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; }
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; }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func <IOrchardHost> orchardHost) { _shellContextFactory = shellContextFactory; _orchardHost = orchardHost; }
/// <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>(); }
public DefaultOrchardHost(IShellContextFactory shellContextFactory, ILoggerFactory loggerFactory) { _shellContextFactory = shellContextFactory; _logger = loggerFactory.CreateLogger<DefaultOrchardHost>(); }
public DefaultProcessingEngine(IShellContextFactory shellContextFactory, Func<IOrchardHost> orchardHost) { _shellContextFactory = shellContextFactory; _orchardHost = orchardHost; }
public DefaultOrchardHost(IShellContextFactory shellContextFactory) { _shellContextFactory = shellContextFactory; }