mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Correcting Orchard.Scripting project file and namespaces
--HG-- branch : dev
This commit is contained in:
@@ -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">
|
||||
|
@@ -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);
|
@@ -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);
|
@@ -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;
|
@@ -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;
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user