Пример #1
0
 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)
     });
 }
Пример #2
0
 public static HttpPowerShellObjectFactory <T> FromCommand(string command, object parameters = null, bool useLocalScope = false)
 {
     return(new HttpPowerShellObjectFactory <T>()
     {
         _command = HttpPowerShellCommand.FromCommand(command, parameters, useLocalScope)
     });
 }
Пример #3
0
 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)
     });
 }
 public static IEnumerable <T> Invoke <T>(string script, IEnumerable input = null, object parameters = null, bool useLocalScope = false)
 {
     return(Invoke <T>(HttpPowerShellCommand.FromScript(script, parameters, useLocalScope), input));
 }