Correcting Orchard.Scripting project file and namespaces

--HG--
branch : dev
This commit is contained in:
Sebastien Ros
2010-11-19 17:09:17 -08:00
parent b3019bc5f5
commit 0c51599e6a
6 changed files with 11 additions and 10 deletions

View File

@@ -10,8 +10,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Orchard.Search</RootNamespace>
<AssemblyName>Orchard.Search</AssemblyName>
<RootNamespace>Orchard.Scripting</RootNamespace>
<AssemblyName>Orchard.Scripting</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<MvcBuildViews>false</MvcBuildViews>
</PropertyGroup>
@@ -85,10 +85,10 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Scripting\IScriptingManager.cs" />
<Compile Include="Scripting\IScriptingRuntime.cs" />
<Compile Include="Scripting\ScriptingManager.cs" />
<Compile Include="Scripting\ScriptingRuntime.cs" />
<Compile Include="Services\IScriptingManager.cs" />
<Compile Include="Services\IScriptingRuntime.cs" />
<Compile Include="Services\ScriptingManager.cs" />
<Compile Include="Services\ScriptingRuntime.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\Orchard\Orchard.Framework.csproj">

View File

@@ -1,7 +1,7 @@
using System;
using Microsoft.Scripting.Hosting;
namespace Orchard.Scripting {
namespace Orchard.Scripting.Services {
public interface IScriptingManager /* : IDependency */ {
dynamic GetVariable(string name);
void SetVariable(string name, object value);

View File

@@ -1,6 +1,6 @@
using Microsoft.Scripting.Hosting;
namespace Orchard.Scripting {
namespace Orchard.Scripting.Services {
public interface IScriptingRuntime /*: ISingletonDependency */ {
ScriptScope CreateScope();
dynamic ExecuteExpression(string expression, ScriptScope scope);

View File

@@ -1,7 +1,7 @@
using System;
using Microsoft.Scripting.Hosting;
namespace Orchard.Scripting {
namespace Orchard.Scripting.Services {
public class ScriptingManager : IScriptingManager {
private readonly IScriptingRuntime _scriptingRuntime;
private Lazy<ScriptScope> _scope;

View File

@@ -1,7 +1,7 @@
using IronRuby;
using Microsoft.Scripting.Hosting;
namespace Orchard.Scripting {
namespace Orchard.Scripting.Services {
public class ScriptingRuntime : IScriptingRuntime {
private readonly LanguageSetup _defaultLanguageSetup;
private readonly ScriptRuntime _scriptingRuntime;

View File

@@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Linq;
using Orchard.Scripting;
using Orchard.Scripting.Services;
using Orchard.UI.Widgets;
namespace Orchard.Widgets.RuleEngine {