Example #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)
     });
 }
Example #2
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)
     });
 }