Reach out to the RecipeManager in the tenant shell to execute context.Recipe

Fixing a comment.

--HG--
branch : recipe
This commit is contained in:
Suha Can
2011-02-12 15:10:49 -08:00
parent e5c821dab3
commit 2a13c106a3
2 changed files with 3 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ namespace Orchard.Setup.Controllers {
// will take a while to finish (user inputting data and the setup process itself).
// We use this opportunity to start a background task to "pre-compile" all the known
// views in the app folder, so that the application is more reponsive when the user
// hits the homepage and admin screens for the first time.)
// hits the homepage and admin screens for the first time.
if (StringComparer.OrdinalIgnoreCase.Equals(initialSettings.Name, ShellSettings.DefaultName)) {
_viewsBackgroundCompilation.Start();
}

View File

@@ -216,6 +216,8 @@ namespace Orchard.Setup.Services {
}
private void CreateTenantData(SetupContext context, IWorkContextScope environment) {
var recipeManager = environment.Resolve<IRecipeManager>();
// create superuser
var membershipService = environment.Resolve<IMembershipService>();
var user =