C# 클래스 NuGetConsole.Host.PowerShell.Implementation.RunspaceDispatcher

Wraps a runspace and protects the invoke method from being called on multiple threads through blocking.
Calls to Invoke on this object will block if the runspace is already busy. Calls to InvokeAsync will also block until the runspace is free. However, it will not block while the pipeline is actually running.
상속: IDisposable
파일 보기 프로젝트 열기: xero-github/Nuget 1 사용 예제들

공개 메소드들

메소드 설명
ChangePSDirectory ( string directory ) : void
Dispose ( ) : void
ExecuteScript ( string installPath, string scriptPath, IPackage package ) : void
ExtractErrorFromErrorRecord ( ErrorRecord record ) : string
GetEffectiveExecutionPolicy ( ) : ExecutionPolicy
GetExecutionPolicy ( ExecutionPolicyScope scope ) : ExecutionPolicy
ImportModule ( string modulePath ) : void
Invoke ( string command, object inputs, bool outputResults ) : Collection
InvokeCommands ( System.Management.Automation.PSCommand profileCommands ) : void
MakeDefault ( ) : void
RunspaceDispatcher ( System.Management.Automation.Runspaces.Runspace runspace ) : System
SetExecutionPolicy ( ExecutionPolicy policy, ExecutionPolicyScope scope ) : void

비공개 메소드들

메소드 설명
CreatePipeline ( string command, bool outputResults ) : System.Management.Automation.Runspaces.Pipeline
GetExecutionPolicy ( string command ) : ExecutionPolicy
InvokeAsync ( string command, object inputs, bool outputResults, EventHandler pipelineStateChanged ) : System.Management.Automation.Runspaces.Pipeline
InvokeCore ( System.Management.Automation.Runspaces.Pipeline pipeline, IEnumerable inputs ) : Collection
InvokeCoreAsync ( System.Management.Automation.Runspaces.Pipeline pipeline, IEnumerable inputs ) : void

메소드 상세

ChangePSDirectory() 공개 메소드

public ChangePSDirectory ( string directory ) : void
directory string
리턴 void

Dispose() 공개 메소드

public Dispose ( ) : void
리턴 void

ExecuteScript() 공개 메소드

public ExecuteScript ( string installPath, string scriptPath, IPackage package ) : void
installPath string
scriptPath string
package IPackage
리턴 void

ExtractErrorFromErrorRecord() 공개 메소드

public ExtractErrorFromErrorRecord ( ErrorRecord record ) : string
record System.Management.Automation.ErrorRecord
리턴 string

GetEffectiveExecutionPolicy() 공개 메소드

public GetEffectiveExecutionPolicy ( ) : ExecutionPolicy
리턴 ExecutionPolicy

GetExecutionPolicy() 공개 메소드

public GetExecutionPolicy ( ExecutionPolicyScope scope ) : ExecutionPolicy
scope ExecutionPolicyScope
리턴 ExecutionPolicy

ImportModule() 공개 메소드

public ImportModule ( string modulePath ) : void
modulePath string
리턴 void

Invoke() 공개 메소드

public Invoke ( string command, object inputs, bool outputResults ) : Collection
command string
inputs object
outputResults bool
리턴 Collection

InvokeCommands() 공개 메소드

public InvokeCommands ( System.Management.Automation.PSCommand profileCommands ) : void
profileCommands System.Management.Automation.PSCommand
리턴 void

MakeDefault() 공개 메소드

public MakeDefault ( ) : void
리턴 void

RunspaceDispatcher() 공개 메소드

public RunspaceDispatcher ( System.Management.Automation.Runspaces.Runspace runspace ) : System
runspace System.Management.Automation.Runspaces.Runspace
리턴 System

SetExecutionPolicy() 공개 메소드

public SetExecutionPolicy ( ExecutionPolicy policy, ExecutionPolicyScope scope ) : void
policy ExecutionPolicy
scope ExecutionPolicyScope
리턴 void