public RecipesStep( IRecipeHarvester recipeHarvester, IRecipeExecutor recipeManager) { _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; }
public AdminController( IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public AdminController( IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IBoyingServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public override void Init() { base.Init(); _recipeManager = _container.Resolve <IRecipeManager>(); _recipeParser = _container.Resolve <IRecipeParser>(); _recipeHarvester = _container.Resolve <IRecipeHarvester>(); }
public RecipesCommands( IRecipeHarvester recipeHarvester, IExtensionManager extensionManager, IStringLocalizer <RecipesCommands> localizer) : base(localizer) { _recipeHarvester = recipeHarvester; _extensionManager = extensionManager; }
public RecipesCommands( IRecipeHarvester recipeHarvester, IExtensionManager extensionManager, IStringLocalizer<RecipesCommands> localizer) : base(localizer) { _recipeHarvester = recipeHarvester; _extensionManager = extensionManager; }
public RecipesStep( IRecipeHarvester recipeHarvester, IRecipeExecutor recipeManager, ILoggerFactory logger, IStringLocalizer <RecipesStep> localizer) : base(logger, localizer) { _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; }
public RecipesStep( IRecipeHarvester recipeHarvester, IRecipeStepQueue recipeStepQueue, IRepository <RecipeStepResultRecord> recipeStepResultRecordRepository, RecipeExecutionLogger logger) : base(logger) { _recipeHarvester = recipeHarvester; _recipeStepQueue = recipeStepQueue; _recipeStepResultRecordRepository = recipeStepResultRecordRepository; }
public RecipesCommands( IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, IExtensionManager extensionManager, IRecipeResultAccessor recipeResultAccessor) { _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _extensionManager = extensionManager; _recipeResultAccessor = recipeResultAccessor; }
public RecipesStep( IRecipeHarvester recipeHarvester, IRecipeExecutor recipeManager, ILoggerFactory logger, IStringLocalizer<RecipesStep> localizer) : base(logger, localizer) { _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; }
public RecipesStep( IRecipeHarvester recipeHarvester, IRecipeStepQueue recipeStepQueue, IRepository<RecipeStepResultRecord> recipeStepResultRecordRepository, RecipeExecutionLogger logger) : base(logger) { _recipeHarvester = recipeHarvester; _recipeStepQueue = recipeStepQueue; _recipeStepResultRecordRepository = recipeStepResultRecordRepository; }
public AdminController( IEnumerable<Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory, IPackageService packageService, IMimeTypeProvider mimeTypeProvider, ISiteThemeService siteThemeService, IThemeService themeService) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; _packageService = packageService; _mimeTypeProvider = mimeTypeProvider; _siteThemeService = siteThemeService; _themeService = themeService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; _tempPackageStoragePath = new Lazy<string>(() => { var path = HostingEnvironment.MapPath("~/App_Data/Packages"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return path; }); }
public AdminController( IEnumerable <Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers, IOrchardServices services, IModuleService moduleService, IDataMigrationManager dataMigrationManager, IReportsCoordinator reportsCoordinator, IExtensionManager extensionManager, IFeatureManager featureManager, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, ShellDescriptor shellDescriptor, ShellSettings shellSettings, IShapeFactory shapeFactory, IPackageService packageService, IMimeTypeProvider mimeTypeProvider, ISiteThemeService siteThemeService, IThemeService themeService) { Services = services; _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault(); _moduleService = moduleService; _dataMigrationManager = dataMigrationManager; _reportsCoordinator = reportsCoordinator; _extensionManager = extensionManager; _featureManager = featureManager; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _shellDescriptor = shellDescriptor; _shellSettings = shellSettings; Shape = shapeFactory; _packageService = packageService; _mimeTypeProvider = mimeTypeProvider; _siteThemeService = siteThemeService; _themeService = themeService; T = NullLocalizer.Instance; Logger = NullLogger.Instance; _tempPackageStoragePath = new Lazy <string>(() => { var path = HostingEnvironment.MapPath("~/App_Data/Packages"); if (!Directory.Exists(path)) { Directory.CreateDirectory(path); } return(path); }); }
public SetupService( ShellSettings shellSettings, IOrchardHost orchardHost, IShellSettingsManager shellSettingsManager, IShellContainerFactory shellContainerFactory, ICompositionStrategy compositionStrategy, IProcessingEngine processingEngine, IRecipeHarvester recipeHarvester) { _shellSettings = shellSettings; _orchardHost = orchardHost; _shellSettingsManager = shellSettingsManager; _shellContainerFactory = shellContainerFactory; _compositionStrategy = compositionStrategy; _processingEngine = processingEngine; _recipeHarvester = recipeHarvester; }
public SetupService( ShellSettings shellSettings, ICoeveryHost coeveryHost, IShellSettingsManager shellSettingsManager, IShellContainerFactory shellContainerFactory, ICompositionStrategy compositionStrategy, IProcessingEngine processingEngine, IRecipeHarvester recipeHarvester) { _shellSettings = shellSettings; _coeveryHost = coeveryHost; _shellSettingsManager = shellSettingsManager; _shellContainerFactory = shellContainerFactory; _compositionStrategy = compositionStrategy; _processingEngine = processingEngine; _recipeHarvester = recipeHarvester; _recipes = _recipeHarvester.HarvestRecipes("Coevery.Setup"); T = NullLocalizer.Instance; }
public SetupService( ShellSettings shellSettings, IOrchardHost orchardHost, IShellSettingsManager shellSettingsManager, IShellContainerFactory shellContainerFactory, ICompositionStrategy compositionStrategy, IProcessingEngine processingEngine, IExtensionManager extensionManager, IRecipeHarvester recipeHarvester) { _shellSettings = shellSettings; _orchardHost = orchardHost; _shellSettingsManager = shellSettingsManager; _shellContainerFactory = shellContainerFactory; _compositionStrategy = compositionStrategy; _processingEngine = processingEngine; _extensionManager = extensionManager; _recipeHarvester = recipeHarvester; T = NullLocalizer.Instance; Logger = NullLogger.Instance; }
public PackagingServicesController( ShellSettings shellSettings, IPackageManager packageManager, IPackagingSourceManager packagingSourceManager, IAppDataFolderRoot appDataFolderRoot, IOrchardServices services, IModuleService moduleService, IRecipeHarvester recipeHarvester, IRecipeManager recipeManager) { _shellSettings = shellSettings; _packageManager = packageManager; _appDataFolderRoot = appDataFolderRoot; _moduleService = moduleService; _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _packagingSourceManager = packagingSourceManager; Services = services; T = NullLocalizer.Instance; Logger = Logging.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 SetupCommand(ISetupService setupService, IRecipeHarvester recipeHarvester) { _setupService = setupService; _recipeHarvester = recipeHarvester; }
public void Init() { _tempFolderName = Path.GetTempFileName(); File.Delete(_tempFolderName); var assembly = GetType().Assembly; foreach (var name in assembly.GetManifestResourceNames()) { if (name.StartsWith(DataPrefix)) { string text; using (var stream = assembly.GetManifestResourceStream(name)) { using (var reader = new StreamReader(stream)) text = reader.ReadToEnd(); } // Pro filtering var relativePath = name .Substring(DataPrefix.Length) .Replace(".txt", ":txt") .Replace(".recipe.xml", ":recipe:xml") .Replace('.', Path.DirectorySeparatorChar) .Replace(":txt", ".txt") .Replace(":recipe:xml", ".recipe.xml"); var targetPath = Path.Combine(_tempFolderName, relativePath); Directory.CreateDirectory(Path.GetDirectoryName(targetPath)); using (var stream = new FileStream(targetPath, FileMode.Create)) { using (var writer = new StreamWriter(stream)) { writer.Write(text); } } } } var builder = new ContainerBuilder(); var harvester = new ExtensionHarvester(new StubCacheManager(), new StubWebSiteFolder(), new Mock<ICriticalErrorProvider>().Object); _folders = new ModuleFolders(new[] { _tempFolderName }, harvester); builder.RegisterType<RecipeManager>().As<IRecipeManager>(); builder.RegisterType<RecipeHarvester>().As<IRecipeHarvester>(); builder.RegisterType<RecipeStepExecutor>().As<IRecipeStepExecutor>(); builder.RegisterType<StubStepQueue>().As<IRecipeStepQueue>().InstancePerLifetimeScope(); builder.RegisterType<StubRecipeJournal>().As<IRecipeJournal>(); builder.RegisterType<StubRecipeScheduler>().As<IRecipeScheduler>(); builder.RegisterType<ExtensionManager>().As<IExtensionManager>(); builder.RegisterType<StubAppDataFolder>().As<IAppDataFolder>(); builder.RegisterType<StubClock>().As<IClock>(); builder.RegisterType<StubCacheManager>().As<ICacheManager>(); builder.RegisterType<StubParallelCacheContext>().As<IParallelCacheContext>(); builder.RegisterType<StubAsyncTokenProvider>().As<IAsyncTokenProvider>(); builder.RegisterInstance(_folders).As<IExtensionFolders>(); builder.RegisterInstance(new Mock<IRecipeExecuteEventHandler>().Object); builder.RegisterType<Environment.Extensions.ExtensionManagerTests.StubLoaders>().As<IExtensionLoader>(); builder.RegisterType<RecipeParser>().As<IRecipeParser>(); builder.RegisterType<StubWebSiteFolder>().As<IWebSiteFolder>(); builder.RegisterType<CustomRecipeHandler>().As<IRecipeHandler>(); _container = builder.Build(); _recipeManager = _container.Resolve<IRecipeManager>(); _recipeParser = _container.Resolve<IRecipeParser>(); _recipeHarvester = _container.Resolve<IRecipeHarvester>(); }
public RecipesCommands(IRecipeHarvester recipeHarvester, IRecipeManager recipeManager, IExtensionManager extensionManager) { _recipeHarvester = recipeHarvester; _recipeManager = recipeManager; _extensionManager = extensionManager; }
public void Init() { _tempFolderName = Path.GetTempFileName(); File.Delete(_tempFolderName); var assembly = GetType().Assembly; foreach (var name in assembly.GetManifestResourceNames()) { if (name.StartsWith(DataPrefix)) { string text; using (var stream = assembly.GetManifestResourceStream(name)) { using (var reader = new StreamReader(stream)) text = reader.ReadToEnd(); } // Pro filtering var relativePath = name .Substring(DataPrefix.Length) .Replace(".txt", ":txt") .Replace(".recipe.xml", ":recipe:xml") .Replace('.', Path.DirectorySeparatorChar) .Replace(":txt", ".txt") .Replace(":recipe:xml", ".recipe.xml"); var targetPath = Path.Combine(_tempFolderName, relativePath); Directory.CreateDirectory(Path.GetDirectoryName(targetPath)); using (var stream = new FileStream(targetPath, FileMode.Create)) { using (var writer = new StreamWriter(stream)) { writer.Write(text); } } } } var builder = new ContainerBuilder(); var harvester = new ExtensionHarvester(new StubCacheManager(), new StubWebSiteFolder(), new Mock <ICriticalErrorProvider>().Object); _folders = new ModuleFolders(new[] { _tempFolderName }, harvester); builder.RegisterType <RecipeManager>().As <IRecipeManager>(); builder.RegisterType <RecipeHarvester>().As <IRecipeHarvester>(); builder.RegisterType <RecipeStepExecutor>().As <IRecipeStepExecutor>(); builder.RegisterType <StubStepQueue>().As <IRecipeStepQueue>().InstancePerLifetimeScope(); builder.RegisterType <StubRecipeJournal>().As <IRecipeJournal>(); builder.RegisterType <StubRecipeScheduler>().As <IRecipeScheduler>(); builder.RegisterType <ExtensionManager>().As <IExtensionManager>(); builder.RegisterType <StubAppDataFolder>().As <IAppDataFolder>(); builder.RegisterType <StubClock>().As <IClock>(); builder.RegisterType <StubCacheManager>().As <ICacheManager>(); builder.RegisterType <StubParallelCacheContext>().As <IParallelCacheContext>(); builder.RegisterType <StubAsyncTokenProvider>().As <IAsyncTokenProvider>(); builder.RegisterInstance(_folders).As <IExtensionFolders>(); builder.RegisterType <Environment.Extensions.ExtensionManagerTests.StubLoaders>().As <IExtensionLoader>(); builder.RegisterType <RecipeParser>().As <IRecipeParser>(); builder.RegisterType <StubWebSiteFolder>().As <IWebSiteFolder>(); builder.RegisterType <CustomRecipeHandler>().As <IRecipeHandler>(); _container = builder.Build(); _recipeManager = _container.Resolve <IRecipeManager>(); _recipeParser = _container.Resolve <IRecipeParser>(); _recipeHarvester = _container.Resolve <IRecipeHarvester>(); }
public RecipesCommands( IRecipeHarvester recipeHarvester, IStringLocalizer <RecipesCommands> localizer) : base(localizer) { _recipeHarvester = recipeHarvester; }
public override void Init() { base.Init(); _recipeManager = _container.Resolve<IRecipeManager>(); _recipeParser = _container.Resolve<IRecipeParser>(); _recipeHarvester = _container.Resolve<IRecipeHarvester>(); }