Basic pieces for recipes infrastructure.

--HG--
branch : recipe
This commit is contained in:
Suha Can
2011-02-10 13:55:29 -08:00
parent c93b091a1d
commit be2a8161d2
11 changed files with 101 additions and 5 deletions

View File

@@ -52,6 +52,8 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Services\RecipeManager.cs" />
<Compile Include="Services\RecipeParser.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">
@@ -59,6 +61,7 @@
<Name>Orchard.Framework</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v10.0\WebApplications\Microsoft.WebApplication.targets" />
<ProjectExtensions>

View File

@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using Orchard.Localization;
using Orchard.Recipes.Models;
namespace Orchard.Recipes.Services {
public class RecipeManager : IRecipeManager {
private readonly IRecipeParser _recipeParser;
private readonly IEnumerable<IRecipeHandler> _recipeHandlers;
public RecipeManager(IRecipeParser recipeParser, IEnumerable<IRecipeHandler> recipeHandlers) {
_recipeParser = recipeParser;
_recipeHandlers = recipeHandlers;
T = NullLocalizer.Instance;
}
public Localizer T { get; set; }
public void Execute(Recipe recipe) {
throw new NotImplementedException();
}
public IEnumerable<Recipe> DiscoverRecipes(string extensionName) {
throw new NotImplementedException();
}
}
}

View File

@@ -0,0 +1,17 @@
using System;
using Orchard.Localization;
using Orchard.Recipes.Models;
namespace Orchard.Recipes.Services {
public class RecipeParser : IRecipeParser {
public RecipeParser() {
T = NullLocalizer.Instance;
}
public Localizer T { get; set; }
public Recipe ParseRecipe(string recipeText) {
throw new NotImplementedException();
}
}
}