public static HttpPowerShellObjectFactory <T> FromResource(ResourceManager manager, string resourceName, object parameters = null, bool useLocalScope = false) { return(new HttpPowerShellObjectFactory <T>() { _command = HttpPowerShellCommand.FromResource(manager, resourceName, parameters, useLocalScope) }); }
public static HttpPowerShellObjectFactory <T> FromResource(string baseName, Assembly assembly, string resourceName, object parameters = null, bool useLocalScope = false) { return(new HttpPowerShellObjectFactory <T>() { _command = HttpPowerShellCommand.FromResource(baseName, assembly, resourceName, parameters, useLocalScope) }); }