Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        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();
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 6
0
 public ScriptingManager(IScriptingRuntime scriptingRuntime)
 {
     _scriptingRuntime = scriptingRuntime;
     _scope            = new Lazy <ScriptScope>(() => _scriptingRuntime.CreateScope());
     _operations       = new Lazy <ObjectOperations>(() => _scope.Value.Engine.Operations);
 }