mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-20 19:03:25 +08:00
Fixing Widget / Scripting / Framework dependency loading.
--HG-- branch : dev
This commit is contained in:
@@ -4,8 +4,8 @@ using Microsoft.Scripting.Hosting;
|
||||
namespace Orchard.Scripting.Services {
|
||||
public class ScriptingManager : IScriptingManager {
|
||||
private readonly IScriptingRuntime _scriptingRuntime;
|
||||
private Lazy<ScriptScope> _scope;
|
||||
private Lazy<ObjectOperations> _operations;
|
||||
private readonly Lazy<ScriptScope> _scope;
|
||||
private readonly Lazy<ObjectOperations> _operations;
|
||||
|
||||
public ScriptingManager(IScriptingRuntime scriptingRuntime) {
|
||||
_scriptingRuntime = scriptingRuntime;
|
||||
@@ -32,6 +32,5 @@ namespace Orchard.Scripting.Services {
|
||||
public void ExecuteFile(string fileName) {
|
||||
_scriptingRuntime.ExecuteFile(fileName, _scope.Value);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user