C# 클래스 JustAProgrammer.ADPR.ADPRHost

PSHost implementation for AppDomainPowerShellRunner.
Based on the msdn page Writing a Windows PowerShell Host Application
상속: System.Management.Automation.Host.PSHost
파일 보기 프로젝트 열기: zippy1981/AppDomainPoshRunner 1 사용 예제들

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