/// <summary> /// Initializes a new instance of the <see cref="PsToolsProcess"/> class. /// </summary> /// <param name="executablePath">The executable path.</param> /// <param name="hostname">The hostname.</param> /// <param name="config">The configuration for using the PSTools</param> public PsToolsProcess(string executablePath, string hostname, IPsToolsConfig config) { this.exePath = executablePath; this.hostname = hostname; this.config = config; this.IsProcessRunning = false; }
/// <summary> /// Initializes a new instance of the <see cref="PsToolsProcess"/> class. /// </summary> /// <param name="executablePath">The executable path.</param> /// <param name="hostname">The hostname.</param> /// <param name="credentials">The credentials.</param> /// <param name="config">The configuration for using the PSTools</param> public PsToolsProcess(string executablePath, string hostname, Credentials credentials, IPsToolsConfig config) : this(executablePath, hostname, config) { this.credentials = credentials; }
/// <summary> /// Initializes a new instance of the <see cref="PsToolsProcess" /> class. /// </summary> /// <param name="executablePath">The executable path.</param> /// <param name="hostname">The hostname.</param> /// <param name="credentials">The credentials.</param> /// <param name="config">The configuration for using the PSTools</param> /// <param name="disposalAction">The disposal action.</param> public PsToolsOwningProcess(string executablePath, string hostname, Credentials credentials, IPsToolsConfig config, Action <IStoppable> disposalAction) { this.process = new PsToolsProcess(executablePath, hostname, credentials, config); this.disposalAction = disposalAction; }