예제 #1
0
 public MFilesScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment, ScriptHostArguments arguments)
     : base(scriptPackManager, environment)
 {
     ListingItems = arguments.ListingItems;
     Vault        = arguments.Vault;
     Properties   = arguments.Properties;
 }
예제 #2
0
        public ScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
        {
            Guard.AgainstNullArgument("scriptPackManager", scriptPackManager);

            _scriptPackManager = scriptPackManager;
            Env = environment;
        }
예제 #3
0
        public ConfigRScriptHost(
            IDictionary <string, object> dictionary, IScriptPackManager scriptPackManager, ScriptEnvironment environment)
            : base(scriptPackManager, environment)
        {
            Guard.AgainstNullArgument("dictionary", dictionary);

            this.dictionary = dictionary;
        }
예제 #4
0
        public ConfigRScriptHost(IConfigurator configurator, IScriptPackManager scriptPackManager, string[] scriptArgs)
            : base(scriptPackManager, scriptArgs)
        {
            if (configurator == null)
            {
                throw new ArgumentNullException("configurator");
            }

            this.configurator = configurator;
        }
예제 #5
0
        public ScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
        {
            if (scriptPackManager == null)
            {
                throw new ArgumentNullException(nameof(scriptPackManager));
            }

            _scriptPackManager = scriptPackManager;
            Env = environment;
        }
예제 #6
0
 public DictionaryScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
     : base(scriptPackManager, environment)
 {
     _host           = new ScriptHost(scriptPackManager, environment);
     Data            = new Dictionary <string, object>();
     Data["Foo"]     = "Bar";
     Data["Message"] = new Message {
         Text = "I am a Message"
     };
 }
예제 #7
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(new ScriptHost(scriptPackManager, scriptArgs));
 }
예제 #8
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(new PvcScriptHost(scriptPackManager, new ScriptEnvironment(scriptArgs)));
 }
예제 #9
0
 IScriptHost IScriptHostFactory.CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(this);
 }
예제 #10
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return new ReplScriptHost(scriptPackManager, new ScriptEnvironment(scriptArgs));
 }
예제 #11
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(new ConfigRScriptHost(this.config, scriptPackManager, new ScriptEnvironment(scriptArgs)));
 }
예제 #12
0
 public ScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     _scriptPackManager = scriptPackManager;
     ScriptArgs         = scriptArgs;
 }
예제 #13
0
 public ScriptHost CreateScriptHost(IScriptPackManager scriptPackManager)
 {
     return(new ScriptHost(scriptPackManager));
 }
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     this._host = new MFilesScriptHost(scriptPackManager, new ScriptEnvironment(scriptArgs, this._console, null), this._globs);
     return(this._host);
 }
예제 #15
0
 public ScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
 {
     _scriptPackManager = scriptPackManager;
     Env = environment;
 }
예제 #16
0
 public WPFScriptHost(IScriptPackManager manager, ScriptEnvironment evn)
     : base(manager, evn)
 {
     Console          = new WPFConsoleRelay();
     this.Application = new Application();
 }
예제 #17
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return new ScriptHost(scriptPackManager, scriptArgs);
 }
예제 #18
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return new ConfigRScriptHost(this.config, scriptPackManager, new ScriptEnvironment(scriptArgs));
 }
예제 #19
0
 public ScriptHost CreateScriptHost(IScriptPackManager scriptPackManager)
 {
     return new ScriptHost(scriptPackManager);
 }
예제 #20
0
 public IConfigRScriptHost CreateScriptHost(IConfigurator configurator, IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(new ConfigRScriptHost(configurator, scriptPackManager, scriptArgs));
 }
예제 #21
0
 public IScriptHost CreateScriptHost(IScriptPackManager scriptPackManager, string[] scriptArgs)
 {
     return(new ScriptHost(scriptPackManager, new ScriptEnvironment(scriptArgs, _console, _printers)));
 }
예제 #22
0
 public PvcScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
     : base(scriptPackManager, environment)
 {
 }
예제 #23
0
 public ReplScriptHost(IScriptPackManager scriptPackManager, ScriptEnvironment environment)
     : base(scriptPackManager, environment)
 {
 }
예제 #24
0
 public ScriptHost(IScriptPackManager scriptPackManager)
 {
     _scriptPackManager = scriptPackManager;
 }