diff --git a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/AutoSetupService.cs b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/AutoSetupService.cs index ee6fea89739..64f941237b8 100644 --- a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/AutoSetupService.cs +++ b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/AutoSetupService.cs @@ -25,15 +25,7 @@ ILogger logger _setupService = setupService; _logger = logger; } - - /// - /// Sets up a tenant. - /// - /// The tenant setup options. - /// The tenant shell settings. - /// - /// Returns true if successfully setup. - /// + public async Task SetupTenantAsync(TenantSetupOptions setupOptions, ShellSettings shellSettings) { var setupContext = await GetSetupContextAsync(setupOptions, shellSettings); @@ -59,12 +51,7 @@ public async Task SetupTenantAsync(TenantSetupOptions setupOptions, ShellS return false; } - - /// - /// Creates a tenant shell settings. - /// - /// The setup options. - /// The . + public async Task CreateTenantSettingsAsync(TenantSetupOptions setupOptions) { using var shellSettings = _shellSettingsManager @@ -87,13 +74,7 @@ public async Task CreateTenantSettingsAsync(TenantSetupOptions se return shellSettings; } - - /// - /// Gets a setup context from the configuration. - /// - /// The tenant setup options. - /// The tenant shell settings. - /// The used to setup the site. + public async Task GetSetupContextAsync(TenantSetupOptions options, ShellSettings shellSettings) { var recipes = await _setupService.GetSetupRecipesAsync(); diff --git a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/IAutoSetupService.cs b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/IAutoSetupService.cs index c2b2730e540..556c85e6b41 100644 --- a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/IAutoSetupService.cs +++ b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Services/IAutoSetupService.cs @@ -1,4 +1,4 @@ -using OrchardCore.AutoSetup.Options; +using OrchardCore.AutoSetup.Options; using OrchardCore.Environment.Shell; using OrchardCore.Setup.Services; @@ -6,9 +6,28 @@ namespace OrchardCore.AutoSetup.Services; public interface IAutoSetupService { + /// + /// Creates a tenant shell settings. + /// + /// The setup options. + /// The . Task CreateTenantSettingsAsync(TenantSetupOptions setupOptions); + /// + /// Gets a setup context from the configuration. + /// + /// The tenant setup options. + /// The tenant shell settings. + /// The used to setup the site. Task GetSetupContextAsync(TenantSetupOptions options, ShellSettings shellSettings); + /// + /// Sets up a tenant. + /// + /// The tenant setup options. + /// The tenant shell settings. + /// + /// Returns true if successfully setup. + /// Task SetupTenantAsync(TenantSetupOptions setupOptions, ShellSettings shellSettings); -} \ No newline at end of file +}