public static PowerShellContextFrame CreateForPowerShellInstance( ILogger logger, SMA.PowerShell pwsh, PowerShellFrameType frameType, string localComputerName) { RunspaceInfo runspaceInfo = RunspaceInfo.CreateFromPowerShell(logger, pwsh, localComputerName); return(new PowerShellContextFrame(pwsh, runspaceInfo, frameType)); }
public PowerShellContextFrame(SMA.PowerShell powerShell, RunspaceInfo runspaceInfo, PowerShellFrameType frameType) { PowerShell = powerShell; RunspaceInfo = runspaceInfo; FrameType = frameType; }