C# Класс JustAProgrammer.ADPR.ADPRHost

PSHost implementation for AppDomainPowerShellRunner.
Based on the msdn page Writing a Windows PowerShell Host Application
Наследование: System.Management.Automation.Host.PSHost
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ADPRHost System

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
ADPRHost ( ADPRState state ) : System

Описание методов

EnterNestedPrompt() публичный Метод

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
Результат void

ExitNestedPrompt() публичный Метод

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
Результат void

NotifyBeginApplication() публичный Метод

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
Результат void

NotifyEndApplication() публичный Метод

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
Результат void

SetShouldExit() публичный Метод

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.
Результат void