mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Removing NHibernate dependency from Recipies
This commit is contained in:
@@ -55,9 +55,6 @@
|
||||
<HintPath>..\..\..\..\lib\log4net\log4net.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="NHibernate">
|
||||
<HintPath>..\..\..\..\lib\nhibernate\NHibernate.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="System.Web.ApplicationServices" />
|
||||
|
@@ -1,7 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NHibernate;
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.Data;
|
||||
using Orchard.Logging;
|
||||
@@ -13,19 +12,16 @@ namespace Orchard.Recipes.Providers.Executors {
|
||||
private readonly IRecipeHarvester _recipeHarvester;
|
||||
private readonly IRecipeStepQueue _recipeStepQueue;
|
||||
private readonly IRepository<RecipeStepResultRecord> _recipeStepResultRecordRepository;
|
||||
private readonly ITransactionManager _transactionManager;
|
||||
|
||||
public RecipesStep(
|
||||
IRecipeHarvester recipeHarvester,
|
||||
IRecipeStepQueue recipeStepQueue,
|
||||
IRepository<RecipeStepResultRecord> recipeStepResultRecordRepository,
|
||||
ITransactionManager transactionManager,
|
||||
RecipeExecutionLogger logger) : base(logger) {
|
||||
|
||||
_recipeHarvester = recipeHarvester;
|
||||
_recipeStepQueue = recipeStepQueue;
|
||||
_recipeStepResultRecordRepository = recipeStepResultRecordRepository;
|
||||
_transactionManager = transactionManager;
|
||||
}
|
||||
|
||||
public override string Name { get { return "Recipes"; } }
|
||||
@@ -38,7 +34,6 @@ namespace Orchard.Recipes.Providers.Executors {
|
||||
public override void Execute(RecipeExecutionContext context) {
|
||||
var recipeElements = context.RecipeStep.Step.Elements();
|
||||
var recipesDictionary = new Dictionary<string, IDictionary<string, Recipe>>();
|
||||
var session = _transactionManager.GetSession();
|
||||
|
||||
foreach (var recipeElement in recipeElements) {
|
||||
var extensionId = recipeElement.Attr("ExtensionId");
|
||||
|
Reference in New Issue
Block a user