C# Class JustAProgrammer.ADPR.ADPRHost

PSHost implementation for AppDomainPowerShellRunner.
Based on the msdn page Writing a Windows PowerShell Host Application
Inheritance: System.Management.Automation.Host.PSHost
Afficher le fichier Open project: zippy1981/AppDomainPoshRunner Class Usage Examples

Private Properties

Свойство Type Description
ADPRHost System

Méthodes publiques

Méthode Description
EnterNestedPrompt ( ) : void

This API Instructs the host to interrupt the currently running pipeline and start a new nested input loop. In this example this functionality is not needed so the method throws a NotImplementedException exception.

ExitNestedPrompt ( ) : void

This API instructs the host to exit the currently running input loop. In this example this functionality is not needed so the method throws a NotImplementedException exception.

NotifyBeginApplication ( ) : void

This API is called before an external application process is started. Typically it is used to save state so that the parent can restore state that has been modified by a child process (after the child exits). In this example this functionality is not needed so the method returns nothing.

NotifyEndApplication ( ) : void

This API is called after an external application process finishes. Typically it is used to restore state that a child process has altered. In this example, this functionality is not needed so the method returns nothing.

SetShouldExit ( int exitCode ) : void

Indicate to the host application that exit has been requested. Pass the exit code that the host application should use when exiting the process.

Private Methods

Méthode Description
ADPRHost ( ADPRState state ) : System

Method Details

EnterNestedPrompt() public méthode

This API Instructs the host to interrupt the currently running pipeline and start a new nested input loop. In this example this functionality is not needed so the method throws a NotImplementedException exception.
public EnterNestedPrompt ( ) : void
Résultat void

ExitNestedPrompt() public méthode

This API instructs the host to exit the currently running input loop. In this example this functionality is not needed so the method throws a NotImplementedException exception.
public ExitNestedPrompt ( ) : void
Résultat void

NotifyBeginApplication() public méthode

This API is called before an external application process is started. Typically it is used to save state so that the parent can restore state that has been modified by a child process (after the child exits). In this example this functionality is not needed so the method returns nothing.
public NotifyBeginApplication ( ) : void
Résultat void

NotifyEndApplication() public méthode

This API is called after an external application process finishes. Typically it is used to restore state that a child process has altered. In this example, this functionality is not needed so the method returns nothing.
public NotifyEndApplication ( ) : void
Résultat void

SetShouldExit() public méthode

Indicate to the host application that exit has been requested. Pass the exit code that the host application should use when exiting the process.
public SetShouldExit ( int exitCode ) : void
exitCode int The exit code that the /// host application should use.
Résultat void