Inheritance: IDisposable
Exemplo n.º 1
0
        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();
 }
Exemplo n.º 3
0
 public PowerShellPoolMember(PowershellPool pool, int index, InitialSessionState initialSessionState)
 {
     _pool  = pool;
     _index = index;
     _initialSessionState = initialSessionState;
     _poolStreams         = _pool.Streams;
     _input.Complete();
     CreatePowerShell(initialSessionState);
 }
Exemplo n.º 4
0
 public PowerShellPoolMember(PowershellPool pool, int index, InitialSessionState initialSessionState)
 {
     _pool = pool;
     _index = index;
     _initialSessionState = initialSessionState;
     _poolStreams = _pool.Streams;
     _input.Complete();
     CreatePowerShell(initialSessionState);
 }
Exemplo n.º 5
0
			protected WorkerBase(InvokeParallelCommand cmdlet)
			{
				Cmdlet = cmdlet;
				Pool = cmdlet.PowershellPool;
			}
Exemplo n.º 6
0
		protected override void BeginProcessing()
		{
			ValidateParameters();
			var iss = GetSessionState();
			PowershellPool = new PowershellPool(ThrottleLimit, iss, _cancelationTokenSource.Token);			
			_worker = NoProgress ? (WorkerBase) new NoProgressWorker(this) : new ProgressWorker(this);
		}
Exemplo n.º 7
0
 protected WorkerBase(InvokeParallelCommand cmdlet)
 {
     Cmdlet = cmdlet;
     Pool   = cmdlet.PowershellPool;
 }