C# Class PSParallel.PowerShellPoolMember

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

Public Methods

Method Description
BeginInvoke ( System.Management.Automation.ScriptBlock scriptblock, System.Management.Automation.PSObject inputObject ) : void
Dispose ( ) : void
PowerShellPoolMember ( PowershellPool pool, int index, InitialSessionState initialSessionState ) : System
ResetPowerShell ( ) : void
Stop ( ) : void

Private Methods

Method Description
CreatePowerShell ( InitialSessionState initialSessionState ) : void
DebugOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
ErrorOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
HookStreamEvents ( System.Management.Automation.PSDataStreams streams ) : void
InformationOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
OnStopped ( IAsyncResult ar ) : void
OutputOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
PowerShellOnInvocationStateChanged ( object sender, System.Management.Automation.PSInvocationStateChangedEventArgs psInvocationStateChangedEventArgs ) : void
ProgressOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
ReleasePowerShell ( ) : void
UnhookStreamEvents ( System.Management.Automation.PSDataStreams streams ) : void
VerboseOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void
WarningOnDataAdded ( object sender, System.Management.Automation.DataAddedEventArgs dataAddedEventArgs ) : void

Method Details

BeginInvoke() public method

public BeginInvoke ( System.Management.Automation.ScriptBlock scriptblock, System.Management.Automation.PSObject inputObject ) : void
scriptblock System.Management.Automation.ScriptBlock
inputObject System.Management.Automation.PSObject
return void

Dispose() public method

public Dispose ( ) : void
return void

PowerShellPoolMember() public method

public PowerShellPoolMember ( PowershellPool pool, int index, InitialSessionState initialSessionState ) : System
pool PowershellPool
index int
initialSessionState System.Management.Automation.Runspaces.InitialSessionState
return System

ResetPowerShell() public method

public ResetPowerShell ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void