public void Init() { var builder = new ContainerBuilder(); builder.RegisterType<RubyScriptingRuntime>().As<IScriptingRuntime>(); builder.RegisterType<ScriptingManager>().As<IScriptingManager>(); _container = builder.Build(); _scriptingRuntime = _container.Resolve<IScriptingRuntime>(); _scriptingManager = _container.Resolve<IScriptingManager>(); _tempFolderName = _tempFixtureFolderName.Combine(System.IO.Path.GetRandomFileName()); try { _tempFolderName.Delete(); } catch { } _tempFolderName.CreateDirectory(); }
public void Init() { var builder = new ContainerBuilder(); builder.RegisterType <RubyScriptingRuntime>().As <IScriptingRuntime>(); builder.RegisterType <ScriptingManager>().As <IScriptingManager>(); _container = builder.Build(); _scriptingRuntime = _container.Resolve <IScriptingRuntime>(); _scriptingManager = _container.Resolve <IScriptingManager>(); _tempFolderName = _tempFixtureFolderName.Combine(System.IO.Path.GetRandomFileName()); try { _tempFolderName.Delete(); } catch { } _tempFolderName.CreateDirectory(); }
public ScriptingManager(IScriptingRuntime scriptingRuntime) { _scriptingRuntime = scriptingRuntime; _scope = new Lazy<ScriptScope>(()=>_scriptingRuntime.CreateScope()); _operations = new Lazy<ObjectOperations>(()=>_scope.Value.Engine.Operations); }
public PlaylistGridViewColumnFactory(IScriptingRuntime scriptingRuntime) { this.ScriptingRuntime = scriptingRuntime; this.ScriptingContext = new Lazy <IScriptingContext>(scriptingRuntime.CreateContext); }
public PlaylistGridViewColumnFactory(IPlaybackManager playbackManager, IScriptingRuntime scriptingRuntime) { this.PlaybackManager = playbackManager; this.ScriptingRuntime = scriptingRuntime; }
public ScriptingManager(IScriptingRuntime scriptingRuntime) { _scriptingRuntime = scriptingRuntime; _scope = new Lazy <ScriptScope>(() => _scriptingRuntime.CreateScope()); _operations = new Lazy <ObjectOperations>(() => _scope.Value.Engine.Operations); }