C# Class JustAProgrammer.ADPR.AppDomainPoshRunner

Inheritance: System.MarshalByRefObject
Datei anzeigen Open project: zippy1981/AppDomainPoshRunner

Public Methods

Method Description
AppDomainPoshRunner ( ADPRConfig config ) : System
RunScriptInNewAppDomain ( ADPRConfig configuration ) : string[]

Created a new AppDomain and runs the given PowerShell script.

Private Methods

Method Description
RunScript ( System.Management.Automation.Runspaces.Runspace runspace, string scriptText, bool outString = false ) : Collection

Runs a PowerShell script under a given Runspace.

RunScript ( Uri file, ADPRHost host = null ) : string[]

Creates a PowerShell Runspace to run a script under.

RunScript ( string script, ADPRHost host = null ) : string[]

Creates a PowerShell Runspace to run a script under.

Method Details

AppDomainPoshRunner() public method

public AppDomainPoshRunner ( ADPRConfig config ) : System
config ADPRConfig
return System

RunScriptInNewAppDomain() public static method

Created a new AppDomain and runs the given PowerShell script.
public static RunScriptInNewAppDomain ( ADPRConfig configuration ) : string[]
configuration ADPRConfig
return string[]