public PNetPowerShell(string hostName, string userName, string keyFile) { if (string.IsNullOrEmpty(hostName)) { throw new ArgumentNullException(nameof(hostName)); } if (string.IsNullOrEmpty(userName)) { throw new ArgumentNullException(nameof(userName)); } var conInfo = new SSHConnectionInfo(userName, hostName, keyFile); _pool = new PNetRunspacePool(conInfo); }
public PNetRunspaceContainer(PNetRunspacePool pool, Runspace runspace) { Pool = pool; Runspace = runspace; }
public PNetPowerShell() { _pool = new PNetRunspacePool(); }