public ExecuteReplCommand( string scriptName, string[] scriptArgs, IFileSystem fileSystem, IScriptPackResolver scriptPackResolver, IRepl repl, ILogProvider logProvider, IConsole console, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgument("scriptPackResolver", scriptPackResolver); Guard.AgainstNullArgument("repl", repl); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("console", console); Guard.AgainstNullArgument("assemblyResolver", assemblyResolver); Guard.AgainstNullArgument("fileSystemMigrator", fileSystemMigrator); Guard.AgainstNullArgument("composer", composer); _scriptName = scriptName; _scriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptPackResolver = scriptPackResolver; _repl = repl; _logger = logProvider.ForCurrentType(); _console = console; _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILogProvider logProvider, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgumentProperty("fileSystem", "BinFolder", fileSystem.BinFolder); Guard.AgainstNullArgumentProperty("fileSystem", "DllCacheFolder", fileSystem.DllCacheFolder); Guard.AgainstNullArgument("filePreProcessor", filePreProcessor); Guard.AgainstNullArgument("scriptEngine", scriptEngine); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("composer", composer); References = new AssemblyReferences(DefaultReferences); Namespaces = new Collection<string>(); ImportNamespaces(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; _log = logProvider.ForCurrentType(); #pragma warning disable 618 Logger = new ScriptCsLogger(_log); #pragma warning restore 618 ScriptLibraryComposer = composer; }
public ExecuteReplCommand( string scriptName, string[] scriptArgs, IFileSystem fileSystem, IScriptPackResolver scriptPackResolver, IRepl repl, ILogProvider logProvider, IConsole console, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgument("scriptPackResolver", scriptPackResolver); Guard.AgainstNullArgument("repl", repl); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("console", console); Guard.AgainstNullArgument("assemblyResolver", assemblyResolver); Guard.AgainstNullArgument("fileSystemMigrator", fileSystemMigrator); Guard.AgainstNullArgument("composer", composer); _scriptName = scriptName; _scriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptPackResolver = scriptPackResolver; _repl = repl; _logger = logProvider.ForCurrentType(); _console = console; _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public ExecuteScriptCommand( string script, string[] scriptArgs, IFileSystem fileSystem, IScriptExecutor scriptExecutor, IScriptPackResolver scriptPackResolver, ILog logger, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer ) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgument("scriptExecutor", scriptExecutor); Guard.AgainstNullArgument("scriptPackResolver", scriptPackResolver); Guard.AgainstNullArgument("logger", logger); Guard.AgainstNullArgument("assemblyResolver", assemblyResolver); Guard.AgainstNullArgument("fileSystemMigrator", fileSystemMigrator); Guard.AgainstNullArgument("composer", composer); _script = script; ScriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptExecutor = scriptExecutor; _scriptPackResolver = scriptPackResolver; _logger = logger; _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public void MigratesTheFileSystem( [Frozen] Mock <IFileSystem> fileSystem, [Frozen] Mock <IConsole> console, [Frozen] Mock <IFileSystemMigrator> fileSystemMigrator, IScriptLibraryComposer composer) { // arrange console.Setup(c => c.ReadLine()).Throws(new Exception()); var sut = new ExecuteReplCommand( null, null, fileSystem.Object, new Mock <IScriptPackResolver>().Object, new Mock <IRepl>().Object, new Mock <ILog>().Object, console.Object, new Mock <IAssemblyResolver>().Object, fileSystemMigrator.Object, composer ); // act sut.Execute(); // assert fileSystemMigrator.Verify(m => m.Migrate(), Times.Once); }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILogProvider logProvider, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable <IReplCommand> replCommands, Printers printers, IScriptInfo scriptInfo) : base(fileSystem, filePreProcessor, scriptEngine, logProvider, composer, scriptInfo) { Guard.AgainstNullArgument("serializer", serializer); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("console", console); _scriptArgs = scriptArgs; _serializer = serializer; _printers = printers; _log = logProvider.ForCurrentType(); Console = console; Commands = replCommands != null?replCommands.Where(x => x.CommandName != null).ToDictionary(x => x.CommandName, x => x) : new Dictionary <string, IReplCommand>(); }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILogProvider logProvider, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable <IReplCommand> replCommands) : base(fileSystem, filePreProcessor, scriptEngine, logProvider, composer) { if (serializer == null) { throw new ArgumentNullException(nameof(serializer)); } if (logProvider == null) { throw new ArgumentNullException(nameof(logProvider)); } if (console == null) { throw new ArgumentNullException(nameof(console)); } _scriptArgs = scriptArgs; _serializer = serializer; _log = logProvider.ForCurrentType(); Console = console; Commands = replCommands != null?replCommands.Where(x => x.CommandName != null).ToDictionary(x => x.CommandName, x => x) : new Dictionary <string, IReplCommand>(); }
public ExecuteScriptCommandBase( string script, string[] scriptArgs, IFileSystem fileSystem, IScriptExecutor scriptExecutor, IScriptPackResolver scriptPackResolver, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IScriptLibraryComposer composer ) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgument("scriptExecutor", scriptExecutor); Guard.AgainstNullArgument("scriptPackResolver", scriptPackResolver); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("assemblyResolver", assemblyResolver); Guard.AgainstNullArgument("composer", composer); Script = script; ScriptArgs = scriptArgs; FileSystem = fileSystem; ScriptExecutor = scriptExecutor; _scriptPackResolver = scriptPackResolver; Logger = logProvider.ForCurrentType(); AssemblyResolver = assemblyResolver; Composer = composer; }
public void MigratesTheFileSystem( [Frozen] Mock<IFileSystem> fileSystem, [Frozen] Mock<IConsole> console, [Frozen] Mock<IFileSystemMigrator> fileSystemMigrator, IScriptLibraryComposer composer) { // arrange console.Setup(c => c.ReadLine()).Throws(new Exception()); var sut = new ExecuteReplCommand( null, null, fileSystem.Object, new Mock<IScriptPackResolver>().Object, new Mock<IRepl>().Object, new TestLogProvider(), console.Object, new Mock<IAssemblyResolver>().Object, fileSystemMigrator.Object, composer ); // act sut.Execute(); // assert fileSystemMigrator.Verify(m => m.Migrate(), Times.Once); }
public ScriptServices( IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IScriptExecutor executor, IRepl repl, IScriptEngine engine, IFilePreProcessor filePreProcessor, IScriptPackResolver scriptPackResolver, IPackageInstaller packageInstaller, IObjectSerializer objectSerializer, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IEnumerable <IReplCommand> replCommands, IConsole console = null, IInstallationProvider installationProvider = null, IScriptLibraryComposer scriptLibraryComposer = null ) { FileSystem = fileSystem; PackageAssemblyResolver = packageAssemblyResolver; Executor = executor; Repl = repl; Engine = engine; FilePreProcessor = filePreProcessor; ScriptPackResolver = scriptPackResolver; PackageInstaller = packageInstaller; ObjectSerializer = objectSerializer; LogProvider = logProvider; Console = console; AssemblyResolver = assemblyResolver; InstallationProvider = installationProvider; ReplCommands = replCommands; ScriptLibraryComposer = scriptLibraryComposer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILogProvider logProvider, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgumentProperty("fileSystem", "BinFolder", fileSystem.BinFolder); Guard.AgainstNullArgumentProperty("fileSystem", "DllCacheFolder", fileSystem.DllCacheFolder); Guard.AgainstNullArgument("filePreProcessor", filePreProcessor); Guard.AgainstNullArgument("scriptEngine", scriptEngine); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("composer", composer); References = new AssemblyReferences(DefaultReferences); Namespaces = new Collection <string>(); ImportNamespaces(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; _log = logProvider.ForCurrentType(); #pragma warning disable 618 Logger = new ScriptCsLogger(_log); #pragma warning restore 618 ScriptLibraryComposer = composer; }
public ExecuteScriptCommand( string script, string[] scriptArgs, IFileSystem fileSystem, IScriptExecutor scriptExecutor, IScriptPackResolver scriptPackResolver, ILog logger, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer ) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgument("scriptExecutor", scriptExecutor); Guard.AgainstNullArgument("scriptPackResolver", scriptPackResolver); Guard.AgainstNullArgument("logger", logger); Guard.AgainstNullArgument("assemblyResolver", assemblyResolver); Guard.AgainstNullArgument("fileSystemMigrator", fileSystemMigrator); Guard.AgainstNullArgument("composer", composer); _script = script; ScriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptExecutor = scriptExecutor; _scriptPackResolver = scriptPackResolver; _logger = logger; _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILogProvider logProvider, IScriptLibraryComposer composer, IScriptInfo scriptInfo) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgumentProperty("fileSystem", "BinFolder", fileSystem.BinFolder); Guard.AgainstNullArgumentProperty("fileSystem", "DllCacheFolder", fileSystem.DllCacheFolder); Guard.AgainstNullArgument("filePreProcessor", filePreProcessor); Guard.AgainstNullArgument("scriptEngine", scriptEngine); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("composer", composer); Guard.AgainstNullArgument("scriptInfo", scriptInfo); References = new AssemblyReferences(new[] { GetAssemblyFromName("System.Runtime") }, DefaultReferences); Namespaces = new ReadOnlyCollection <string>(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; _log = logProvider.ForCurrentType(); ScriptLibraryComposer = composer; ScriptInfo = scriptInfo; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, Common.Logging.ILog logger, IScriptLibraryComposer composer) : this(fileSystem, filePreProcessor, scriptEngine, new CommonLoggingLogProvider(logger), composer) { }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, Common.Logging.ILog logger, IScriptLibraryComposer composer) : this(fileSystem, filePreProcessor, scriptEngine, new CommonLoggingLogProvider(logger), composer) { }
public ExecuteReplCommand( string scriptName, string[] scriptArgs, IFileSystem fileSystem, IScriptPackResolver scriptPackResolver, IRepl repl, ILogProvider logProvider, IConsole console, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer) { if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } if (scriptPackResolver == null) { throw new ArgumentNullException(nameof(scriptPackResolver)); } if (repl == null) { throw new ArgumentNullException(nameof(repl)); } if (logProvider == null) { throw new ArgumentNullException(nameof(logProvider)); } if (console == null) { throw new ArgumentNullException(nameof(console)); } if (assemblyResolver == null) { throw new ArgumentNullException(nameof(assemblyResolver)); } if (fileSystemMigrator == null) { throw new ArgumentNullException(nameof(fileSystemMigrator)); } if (composer == null) { throw new ArgumentNullException(nameof(composer)); } _scriptName = scriptName; _scriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptPackResolver = scriptPackResolver; _repl = repl; _logger = logProvider.ForCurrentType(); _console = console; _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public ExecuteLooseScriptCommand( string script, string[] scriptArgs, IFileSystem fileSystem, IScriptExecutor scriptExecutor, IScriptPackResolver scriptPackResolver, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IScriptLibraryComposer composer) : base(script, scriptArgs, fileSystem, scriptExecutor, scriptPackResolver, logProvider, assemblyResolver, composer) { }
public ExecuteScriptCommand( string script, string[] scriptArgs, IFileSystem fileSystem, IScriptExecutor scriptExecutor, IScriptPackResolver scriptPackResolver, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer ) { if (script == null) { throw new ArgumentNullException(nameof(script)); } if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } if (scriptExecutor == null) { throw new ArgumentNullException(nameof(scriptExecutor)); } if (scriptPackResolver == null) { throw new ArgumentNullException(nameof(scriptPackResolver)); } if (logProvider == null) { throw new ArgumentNullException(nameof(logProvider)); } if (assemblyResolver == null) { throw new ArgumentNullException(nameof(assemblyResolver)); } if (fileSystemMigrator == null) { throw new ArgumentNullException(nameof(fileSystemMigrator)); } if (composer == null) { throw new ArgumentNullException(nameof(composer)); } _script = script; ScriptArgs = scriptArgs; _fileSystem = fileSystem; _scriptExecutor = scriptExecutor; _scriptPackResolver = scriptPackResolver; _logger = logProvider.ForCurrentType(); _assemblyResolver = assemblyResolver; _fileSystemMigrator = fileSystemMigrator; _composer = composer; }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILog logger, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable<IReplCommand> replCommands) : base(fileSystem, filePreProcessor, scriptEngine, logger, composer) { _scriptArgs = scriptArgs; _serializer = serializer; Console = console; Commands = replCommands != null ? replCommands.Where(x => x.CommandName != null).ToDictionary(x => x.CommandName, x => x) : new Dictionary<string, IReplCommand>(); }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILog logger, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable <IReplCommand> replCommands) : base(fileSystem, filePreProcessor, scriptEngine, logger, composer) { _scriptArgs = scriptArgs; _serializer = serializer; Console = console; Commands = replCommands != null?replCommands.Where(x => x.CommandName != null).ToDictionary(x => x.CommandName, x => x) : new Dictionary <string, IReplCommand>(); }
public InstallCommand( string name, string version, bool allowPre, IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IPackageInstaller packageInstaller, IScriptLibraryComposer composer, ILogProvider logger) { _name = name; _version = version ?? string.Empty; _allowPre = allowPre; _fileSystem = fileSystem; _packageAssemblyResolver = packageAssemblyResolver; _packageInstaller = packageInstaller; _composer = composer; _logger = logger.ForCurrentType(); }
public InstallCommand( string name, string version, bool allowPre, IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IPackageInstaller packageInstaller, IScriptLibraryComposer composer, ILog logger) { _name = name; _version = version ?? string.Empty; _allowPre = allowPre; _fileSystem = fileSystem; _packageAssemblyResolver = packageAssemblyResolver; _packageInstaller = packageInstaller; _composer = composer; _logger = logger; }
public ScriptServices( IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IScriptExecutor executor, IRepl repl, IScriptEngine engine, IFilePreProcessor filePreProcessor, IScriptPackResolver scriptPackResolver, IPackageInstaller packageInstaller, IObjectSerializer objectSerializer, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IEnumerable <IReplCommand> replCommands, IFileSystemMigrator fileSystemMigrator, IConsole console = null, IInstallationProvider installationProvider = null, IScriptLibraryComposer scriptLibraryComposer = null ) { FileSystem = fileSystem; PackageAssemblyResolver = packageAssemblyResolver; Executor = executor; Repl = repl; Engine = engine; FilePreProcessor = filePreProcessor; ScriptPackResolver = scriptPackResolver; PackageInstaller = packageInstaller; ObjectSerializer = objectSerializer; LogProvider = logProvider; #pragma warning disable 618 Logger = new ScriptCsLogger(logProvider.ForCurrentType()); #pragma warning restore 618 Console = console; AssemblyResolver = assemblyResolver; InstallationProvider = installationProvider; ReplCommands = replCommands; FileSystemMigrator = fileSystemMigrator; ScriptLibraryComposer = scriptLibraryComposer; }
public ScriptServices( IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IScriptExecutor executor, IRepl repl, IScriptEngine engine, IFilePreProcessor filePreProcessor, IScriptPackResolver scriptPackResolver, IPackageInstaller packageInstaller, IObjectSerializer objectSerializer, ILogProvider logProvider, IAssemblyResolver assemblyResolver, IEnumerable<IReplCommand> replCommands, IFileSystemMigrator fileSystemMigrator, IConsole console = null, IInstallationProvider installationProvider = null, IScriptLibraryComposer scriptLibraryComposer = null ) { FileSystem = fileSystem; PackageAssemblyResolver = packageAssemblyResolver; Executor = executor; Repl = repl; Engine = engine; FilePreProcessor = filePreProcessor; ScriptPackResolver = scriptPackResolver; PackageInstaller = packageInstaller; ObjectSerializer = objectSerializer; LogProvider = logProvider; #pragma warning disable 618 Logger = new ScriptCsLogger(logProvider.ForCurrentType()); #pragma warning restore 618 Console = console; AssemblyResolver = assemblyResolver; InstallationProvider = installationProvider; ReplCommands = replCommands; FileSystemMigrator = fileSystemMigrator; ScriptLibraryComposer = scriptLibraryComposer; }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILogProvider logProvider, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable<IReplCommand> replCommands) : base(fileSystem, filePreProcessor, scriptEngine, logProvider, composer) { Guard.AgainstNullArgument("serializer", serializer); Guard.AgainstNullArgument("logProvider", logProvider); Guard.AgainstNullArgument("console", console); _scriptArgs = scriptArgs; _serializer = serializer; _log = logProvider.ForCurrentType(); Console = console; Commands = replCommands != null ? replCommands.Where(x => x.CommandName != null).ToDictionary(x => x.CommandName, x => x) : new Dictionary<string, IReplCommand>(); }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, Common.Logging.ILog logger, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable<IReplCommand> replCommands) : this( scriptArgs, fileSystem, scriptEngine, serializer, new CommonLoggingLogProvider(logger), composer, console, filePreProcessor, replCommands) { }
public Repl( string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, Common.Logging.ILog logger, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable <IReplCommand> replCommands) : this( scriptArgs, fileSystem, scriptEngine, serializer, new CommonLoggingLogProvider(logger), composer, console, filePreProcessor, replCommands) { }
public ScriptServices( IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IScriptExecutor executor, IRepl repl, IScriptEngine engine, IFilePreProcessor filePreProcessor, IScriptPackResolver scriptPackResolver, IPackageInstaller packageInstaller, IObjectSerializer objectSerializer, Common.Logging.ILog logger, IAssemblyResolver assemblyResolver, IEnumerable <IReplCommand> replCommands, IFileSystemMigrator fileSystemMigrator, IConsole console = null, IInstallationProvider installationProvider = null, IScriptLibraryComposer scriptLibraryComposer = null ) : this( fileSystem, packageAssemblyResolver, executor, repl, engine, filePreProcessor, scriptPackResolver, packageInstaller, objectSerializer, new CommonLoggingLogProvider(logger), assemblyResolver, replCommands, fileSystemMigrator, console, installationProvider, scriptLibraryComposer ) { }
public ScriptServices( IFileSystem fileSystem, IPackageAssemblyResolver packageAssemblyResolver, IScriptExecutor executor, IRepl repl, IScriptEngine engine, IFilePreProcessor filePreProcessor, IScriptPackResolver scriptPackResolver, IPackageInstaller packageInstaller, IObjectSerializer objectSerializer, Common.Logging.ILog logger, IAssemblyResolver assemblyResolver, IEnumerable<IReplCommand> replCommands, IFileSystemMigrator fileSystemMigrator, IConsole console = null, IInstallationProvider installationProvider = null, IScriptLibraryComposer scriptLibraryComposer = null ) : this( fileSystem, packageAssemblyResolver, executor, repl, engine, filePreProcessor, scriptPackResolver, packageInstaller, objectSerializer, new CommonLoggingLogProvider(logger), assemblyResolver, replCommands, fileSystemMigrator, console, installationProvider, scriptLibraryComposer ) { }
public HtmlExecuteReplCommand( string scriptName, string[] scriptArgs, IFileSystem fileSystem, IScriptPackResolver scriptPackResolver, IRepl repl, ILogProvider logProvider, IConsole console, IAssemblyResolver assemblyResolver, IFileSystemMigrator fileSystemMigrator, IScriptLibraryComposer composer) { this._scriptName = scriptName; this._scriptArgs = scriptArgs; this._fileSystem = fileSystem; this._scriptPackResolver = scriptPackResolver; this._repl = repl; this._logger = logProvider.ForCurrentType(); this._console = console; this._assemblyResolver = assemblyResolver; this._fileSystemMigrator = fileSystemMigrator; this._composer = composer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILogProvider logProvider, IScriptLibraryComposer composer) { if (fileSystem == null) { throw new ArgumentNullException(nameof(fileSystem)); } if (filePreProcessor == null) { throw new ArgumentNullException(nameof(filePreProcessor)); } if (scriptEngine == null) { throw new ArgumentNullException(nameof(scriptEngine)); } if (logProvider == null) { throw new ArgumentNullException(nameof(logProvider)); } if (composer == null) { throw new ArgumentNullException(nameof(composer)); } References = new AssemblyReferences(DefaultReferences); Namespaces = new Collection <string>(); ImportNamespaces(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; _log = logProvider.ForCurrentType(); ScriptLibraryComposer = composer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILog logger, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgumentProperty("fileSystem", "BinFolder", fileSystem.BinFolder); Guard.AgainstNullArgumentProperty("fileSystem", "DllCacheFolder", fileSystem.DllCacheFolder); Guard.AgainstNullArgument("filePreProcessor", filePreProcessor); Guard.AgainstNullArgument("scriptEngine", scriptEngine); Guard.AgainstNullArgument("logger", logger); Guard.AgainstNullArgument("composer", composer); References = new AssemblyReferences(DefaultReferences); Namespaces = new Collection<string>(); ImportNamespaces(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; Logger = logger; ScriptLibraryComposer = composer; }
public ScriptExecutor( IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILog logger, IScriptLibraryComposer composer) { Guard.AgainstNullArgument("fileSystem", fileSystem); Guard.AgainstNullArgumentProperty("fileSystem", "BinFolder", fileSystem.BinFolder); Guard.AgainstNullArgumentProperty("fileSystem", "DllCacheFolder", fileSystem.DllCacheFolder); Guard.AgainstNullArgument("filePreProcessor", filePreProcessor); Guard.AgainstNullArgument("scriptEngine", scriptEngine); Guard.AgainstNullArgument("logger", logger); Guard.AgainstNullArgument("composer", composer); References = new AssemblyReferences(DefaultReferences); Namespaces = new Collection <string>(); ImportNamespaces(DefaultNamespaces); FileSystem = fileSystem; FilePreProcessor = filePreProcessor; ScriptEngine = scriptEngine; Logger = logger; ScriptLibraryComposer = composer; }
public DebugScriptExecutor(IFileSystem fileSystem, IFilePreProcessor filePreProcessor, IScriptEngine scriptEngine, ILog logger, IScriptLibraryComposer composer) : base(fileSystem, filePreProcessor, scriptEngine, logger, composer) { }
public MFilesRepl(string[] scriptArgs, IFileSystem fileSystem, IScriptEngine scriptEngine, IObjectSerializer serializer, ILogProvider logProvider, IScriptLibraryComposer composer, IConsole console, IFilePreProcessor filePreProcessor, IEnumerable <IReplCommand> replCommands, Printers printers, IScriptInfo scriptInfo) : base(scriptArgs, fileSystem, scriptEngine, serializer, logProvider, composer, console, filePreProcessor, replCommands, printers, scriptInfo) { }