Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public PNetRunspaceContainer(PNetRunspacePool pool, Runspace runspace)
 {
     Pool     = pool;
     Runspace = runspace;
 }
Esempio n. 3
0
 public PNetPowerShell()
 {
     _pool = new PNetRunspacePool();
 }