C# Class PSParallel.PowershellPool

Inheritance: IDisposable
Show file Open project: powercode/PSParallel Class Usage Examples

Public Properties

Property Type Description
Streams PowerShellPoolStreams

Public Methods

Method Description
Dispose ( ) : void
GetEstimatedProgressCount ( ) : int
PowershellPool ( int poolSize, InitialSessionState initialSessionState, CancellationToken cancellationToken ) : System
ReportAvailable ( PowerShellPoolMember poolmember ) : void
ReportStopped ( PowerShellPoolMember powerShellPoolMember ) : void
Stop ( ) : void
TryAddInput ( System.Management.Automation.ScriptBlock scriptblock, System.Management.Automation.PSObject inputObject ) : bool
WaitForAllPowershellCompleted ( int timeoutMilliseconds ) : bool

Private Methods

Method Description
GetPartiallyProcessedCount ( ) : int
TryWaitForAvailablePowershell ( int milliseconds, PowerShellPoolMember &poolMember ) : bool

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GetEstimatedProgressCount() public method

public GetEstimatedProgressCount ( ) : int
return int

PowershellPool() public method

public PowershellPool ( int poolSize, InitialSessionState initialSessionState, CancellationToken cancellationToken ) : System
poolSize int
initialSessionState System.Management.Automation.Runspaces.InitialSessionState
cancellationToken System.Threading.CancellationToken
return System

ReportAvailable() public method

public ReportAvailable ( PowerShellPoolMember poolmember ) : void
poolmember PowerShellPoolMember
return void

ReportStopped() public method

public ReportStopped ( PowerShellPoolMember powerShellPoolMember ) : void
powerShellPoolMember PowerShellPoolMember
return void

Stop() public method

public Stop ( ) : void
return void

TryAddInput() public method

public TryAddInput ( System.Management.Automation.ScriptBlock scriptblock, System.Management.Automation.PSObject inputObject ) : bool
scriptblock System.Management.Automation.ScriptBlock
inputObject System.Management.Automation.PSObject
return bool

WaitForAllPowershellCompleted() public method

public WaitForAllPowershellCompleted ( int timeoutMilliseconds ) : bool
timeoutMilliseconds int
return bool

Property Details

Streams public property

public PowerShellPoolStreams Streams
return PowerShellPoolStreams