Click or drag to resize

PowerShellExecutionHost Class

This IProcessExecutionHost launches a PowerShell process with the PsExecHost.ps1 script and uses RemoteExecHostClient to request process executions.
Inheritance Hierarchy

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: (
public class PowerShellExecutionHost : PowerShellExecutionHostBase

The PowerShellExecutionHost type exposes the following members.

Public methodPowerShellExecutionHost
Initializes a new instance of PowerShellExecutionHost.
Protected propertyBenchRoot
The root directory of the Bench environment.
(Inherited from PowerShellExecutionHostBase.)
Protected propertyCurrentToken
The current token to identify the IPC connection.
(Inherited from PowerShellExecutionHostBase.)
Public propertyIsDisposed
Checks if this instance of already disposed.
(Inherited from PowerShellExecutionHostBase.)
Protected propertyIsPowerShellExecutionHostRunning
Checks is the PowerShell process is running.
(Overrides PowerShellExecutionHostBaseIsPowerShellExecutionHostRunning.)
Public propertyIsStarted
Checks whether the host is started, or not.
(Inherited from PowerShellExecutionHostBase.)
Protected propertyPsExecHostScriptFile
An absolute path to the PsExecHost.ps1 script file.
(Inherited from PowerShellExecutionHostBase.)
Public methodDispose
Shuts down this execution host and kills the attached PowerShell process.
(Inherited from PowerShellExecutionHostBase.)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnDispose
Is called when this instance is disposed.
(Inherited from PowerShellExecutionHostBase.)
Protected methodRequestConfigurationReload
Call this to request a reload of the Bench configuration in the remote execution host, before the next execution request is processed.
(Inherited from PowerShellExecutionHostBase.)
Public methodRunProcess
Starts a Windows process in a synchronous fashion.
(Inherited from PowerShellExecutionHostBase.)
Public methodStartHost
Starts the remote host and prepares for first execution request.
(Inherited from PowerShellExecutionHostBase.)
Protected methodStartPowerShellExecutionHost
Starts the PowerShell process and runs the PsExecHost.ps1.
(Overrides PowerShellExecutionHostBaseStartPowerShellExecutionHost.)
Public methodStartProcess
Starts a Windows process in an asynchronous fashion.
(Inherited from PowerShellExecutionHostBase.)
Public methodToString (Inherited from Object.)
Protected methodWaitForPowerShellExecutionHostToEnd
Waits for the PowerShell process to end. Is called after the shut down request was send.
(Overrides PowerShellExecutionHostBaseWaitForPowerShellExecutionHostToEnd.)
See Also