C# Class PSParallel.PowershellPool

Inheritance: IDisposable
Afficher le fichier Open project: powercode/PSParallel Class Usage Examples

Méthodes publiques

Свойство Type Description
Streams PowerShellPoolStreams

Méthodes publiques

Méthode 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

Méthode Description
GetPartiallyProcessedCount ( ) : int
TryWaitForAvailablePowershell ( int milliseconds, PowerShellPoolMember &poolMember ) : bool

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetEstimatedProgressCount() public méthode

public GetEstimatedProgressCount ( ) : int
Résultat int

PowershellPool() public méthode

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

ReportAvailable() public méthode

public ReportAvailable ( PowerShellPoolMember poolmember ) : void
poolmember PowerShellPoolMember
Résultat void

ReportStopped() public méthode

public ReportStopped ( PowerShellPoolMember powerShellPoolMember ) : void
powerShellPoolMember PowerShellPoolMember
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

TryAddInput() public méthode

public TryAddInput ( System.Management.Automation.ScriptBlock scriptblock, System.Management.Automation.PSObject inputObject ) : bool
scriptblock System.Management.Automation.ScriptBlock
inputObject System.Management.Automation.PSObject
Résultat bool

WaitForAllPowershellCompleted() public méthode

public WaitForAllPowershellCompleted ( int timeoutMilliseconds ) : bool
timeoutMilliseconds int
Résultat bool

Property Details

Streams public_oe property

public PowerShellPoolStreams Streams
Résultat PowerShellPoolStreams