protected override void BeginProcessing() { ValidateParameters(); var iss = GetSessionState(); PowershellPool = new PowershellPool(ThrottleLimit, iss, _cancelationTokenSource.Token); _worker = NoProgress ? (WorkerBase) new NoProgressWorker(this) : new ProgressWorker(this); }
public PowerShellPoolMember(PowershellPool pool, int index) { m_pool = pool; m_index = index; m_poolStreams = m_pool.Streams; m_input.Complete(); CreatePowerShell(); }
public PowerShellPoolMember(PowershellPool pool, int index, InitialSessionState initialSessionState) { _pool = pool; _index = index; _initialSessionState = initialSessionState; _poolStreams = _pool.Streams; _input.Complete(); CreatePowerShell(initialSessionState); }
protected WorkerBase(InvokeParallelCommand cmdlet) { Cmdlet = cmdlet; Pool = cmdlet.PowershellPool; }