API Reference
Class
PooledPowerShell
Wrapper for PowerShell objects that returns the underlying runspace to the pool when disposed.
Inheritance
- Object
- PooledPowerShell
Constructors
public PooledPowerShell(PowerShell ps, Runspace runspace, RunspacePool pool) #Creates a pooled PowerShell wrapper.
Parameters
- ps System.Management.Automation.PowerShell
- PowerShell instance.
- runspace System.Management.Automation.Runspaces.Runspace
- Runspace acquired from the pool.
- pool TestimoX.PowerShell.RunspacePool
- Runspace pool to return the runspace to.
Methods
public virtual Void Dispose() #Returns:
VoidDisposes the PowerShell and returns its runspace to the pool.
Inherited Methods
Properties
public PowerShell PowerShell { get; } #Underlying PowerShell instance.