Fixing Widget / Scripting / Framework dependency loading.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-20 15:38:56 -08:00
parent e208860ea2
commit 53bddd53d9
25 changed files with 38 additions and 44 deletions

View File

@@ -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);
}
}
}
}