C# Class JustAProgrammer.ADPR.AppDomainPoshRunner

Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: zippy1981/AppDomainPoshRunner

Méthodes publiques

Méthode Description
AppDomainPoshRunner ( ADPRConfig config ) : System
RunScriptInNewAppDomain ( ADPRConfig configuration ) : string[]

Created a new AppDomain and runs the given PowerShell script.

Private Methods

Méthode 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 méthode

public AppDomainPoshRunner ( ADPRConfig config ) : System
config ADPRConfig
Résultat System

RunScriptInNewAppDomain() public static méthode

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