Remove src\Microsoft.PowerShell.Core.Activities (#4583)

This commit is contained in:
Dongbo Wang 2017-08-16 17:35:24 -07:00 committed by Aditya Patwardhan
parent d75065c874
commit 55fe5263e4
30 changed files with 0 additions and 5382 deletions

View file

@ -1,18 +0,0 @@
using System.Reflection;
using System.Security.Permissions;
using System.Runtime.CompilerServices;
using System.Runtime.ConstrainedExecution;
using System.Diagnostics.CodeAnalysis;
[assembly: AssemblyVersion("3.0.0.0")]
[assembly: AssemblyFileVersionAttribute("3.0.0.0")]
[assembly: System.Runtime.InteropServices.ComVisible(false)]
[assembly: AssemblyConfiguration("")]
[assembly: ReliabilityContractAttribute(Consistency.MayCorruptAppDomain, Cer.MayFail)]
[assembly: AssemblyTitle("Microsoft.PowerShell.Core.Activities")]
[assembly: AssemblyDescription("Microsoft.PowerShell.Core.Activities")]
[module: SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")]

View file

@ -1,70 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Disable-PSRemoting command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class DisablePSRemoting : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public DisablePSRemoting()
{
this.DisplayName = "Disable-PSRemoting";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Disable-PSRemoting"; } }
// Arguments
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of Sytem.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,94 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Disable-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class DisablePSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public DisablePSSessionConfiguration()
{
this.DisplayName = "Disable-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Disable-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the NoServiceRestart parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoServiceRestart { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(NoServiceRestart.Expression != null)
{
targetCommand.AddParameter("NoServiceRestart", NoServiceRestart.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,82 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Enable-PSRemoting command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class EnablePSRemoting : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public EnablePSRemoting()
{
this.DisplayName = "Enable-PSRemoting";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Enable-PSRemoting"; } }
// Arguments
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the SkipNetworkProfileCheck parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> SkipNetworkProfileCheck { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(SkipNetworkProfileCheck.Expression != null)
{
targetCommand.AddParameter("SkipNetworkProfileCheck", SkipNetworkProfileCheck.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,118 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Enable-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class EnablePSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public EnablePSSessionConfiguration()
{
this.DisplayName = "Enable-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Enable-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the SecurityDescriptorSddl parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> SecurityDescriptorSddl { get; set; }
/// <summary>
/// Provides access to the SkipNetworkProfileCheck parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> SkipNetworkProfileCheck { get; set; }
/// <summary>
/// Provides access to the NoServiceRestart parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoServiceRestart { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(SecurityDescriptorSddl.Expression != null)
{
targetCommand.AddParameter("SecurityDescriptorSddl", SecurityDescriptorSddl.Get(context));
}
if(SkipNetworkProfileCheck.Expression != null)
{
targetCommand.AddParameter("SkipNetworkProfileCheck", SkipNetworkProfileCheck.Get(context));
}
if(NoServiceRestart.Expression != null)
{
targetCommand.AddParameter("NoServiceRestart", NoServiceRestart.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,142 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\ForEach-Object command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class ForEachObject : PSActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public ForEachObject()
{
this.DisplayName = "ForEach-Object";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\ForEach-Object"; } }
// Arguments
/// <summary>
/// Provides access to the InputObject parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSObject> InputObject { get; set; }
/// <summary>
/// Provides access to the Begin parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock> Begin { get; set; }
/// <summary>
/// Provides access to the Process parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock[]> Process { get; set; }
/// <summary>
/// Provides access to the End parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock> End { get; set; }
/// <summary>
/// Provides access to the RemainingScripts parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock[]> RemainingScripts { get; set; }
/// <summary>
/// Provides access to the MemberName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> MemberName { get; set; }
/// <summary>
/// Provides access to the ArgumentList parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ArgumentList { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
}
if(Begin.Expression != null)
{
targetCommand.AddParameter("Begin", Begin.Get(context));
}
if(Process.Expression != null)
{
targetCommand.AddParameter("Process", Process.Get(context));
}
if(End.Expression != null)
{
targetCommand.AddParameter("End", End.Get(context));
}
if(RemainingScripts.Expression != null)
{
targetCommand.AddParameter("RemainingScripts", RemainingScripts.Get(context));
}
if(MemberName.Expression != null)
{
targetCommand.AddParameter("MemberName", MemberName.Get(context));
}
if(ArgumentList.Expression != null)
{
targetCommand.AddParameter("ArgumentList", ArgumentList.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,226 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-Command command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetCommand : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetCommand()
{
this.DisplayName = "Get-Command";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Command"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the Verb parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Verb { get; set; }
/// <summary>
/// Provides access to the Noun parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Noun { get; set; }
/// <summary>
/// Provides access to the Module parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Module { get; set; }
/// <summary>
/// Provides access to the FullyQualifiedModule parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.PowerShell.Commands.ModuleSpecification[]> FullyQualifiedModule { get; set; }
/// <summary>
/// Provides access to the CommandType parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.CommandTypes> CommandType { get; set; }
/// <summary>
/// Provides access to the TotalCount parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32> TotalCount { get; set; }
/// <summary>
/// Provides access to the Syntax parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Syntax { get; set; }
/// <summary>
/// Provides access to the ShowCommandInfo parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ShowCommandInfo { get; set; }
/// <summary>
/// Provides access to the ArgumentList parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ArgumentList { get; set; }
/// <summary>
/// Provides access to the All parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> All { get; set; }
/// <summary>
/// Provides access to the ListImported parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ListImported { get; set; }
/// <summary>
/// Provides access to the ParameterName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ParameterName { get; set; }
/// <summary>
/// Provides access to the ParameterType parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSTypeName[]> ParameterType { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Verb.Expression != null)
{
targetCommand.AddParameter("Verb", Verb.Get(context));
}
if(Noun.Expression != null)
{
targetCommand.AddParameter("Noun", Noun.Get(context));
}
if(Module.Expression != null)
{
targetCommand.AddParameter("Module", Module.Get(context));
}
if(FullyQualifiedModule.Expression != null)
{
targetCommand.AddParameter("FullyQualifiedModule", FullyQualifiedModule.Get(context));
}
if(CommandType.Expression != null)
{
targetCommand.AddParameter("CommandType", CommandType.Get(context));
}
if(TotalCount.Expression != null)
{
targetCommand.AddParameter("TotalCount", TotalCount.Get(context));
}
if(Syntax.Expression != null)
{
targetCommand.AddParameter("Syntax", Syntax.Get(context));
}
if(ShowCommandInfo.Expression != null)
{
targetCommand.AddParameter("ShowCommandInfo", ShowCommandInfo.Get(context));
}
if(ArgumentList.Expression != null)
{
targetCommand.AddParameter("ArgumentList", ArgumentList.Get(context));
}
if(All.Expression != null)
{
targetCommand.AddParameter("All", All.Get(context));
}
if(ListImported.Expression != null)
{
targetCommand.AddParameter("ListImported", ListImported.Get(context));
}
if(ParameterName.Expression != null)
{
targetCommand.AddParameter("ParameterName", ParameterName.Get(context));
}
if(ParameterType.Expression != null)
{
targetCommand.AddParameter("ParameterType", ParameterType.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,202 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-Help command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetHelp : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetHelp()
{
this.DisplayName = "Get-Help";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Help"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Name { get; set; }
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
/// <summary>
/// Provides access to the Category parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Category { get; set; }
/// <summary>
/// Provides access to the Component parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Component { get; set; }
/// <summary>
/// Provides access to the Functionality parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Functionality { get; set; }
/// <summary>
/// Provides access to the Role parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Role { get; set; }
/// <summary>
/// Provides access to the Detailed parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Detailed { get; set; }
/// <summary>
/// Provides access to the Full parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Full { get; set; }
/// <summary>
/// Provides access to the Examples parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Examples { get; set; }
/// <summary>
/// Provides access to the Parameter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Parameter { get; set; }
/// <summary>
/// Provides access to the Online parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Online { get; set; }
/// <summary>
/// Provides access to the ShowWindow parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ShowWindow { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
if(Category.Expression != null)
{
targetCommand.AddParameter("Category", Category.Get(context));
}
if(Component.Expression != null)
{
targetCommand.AddParameter("Component", Component.Get(context));
}
if(Functionality.Expression != null)
{
targetCommand.AddParameter("Functionality", Functionality.Get(context));
}
if(Role.Expression != null)
{
targetCommand.AddParameter("Role", Role.Get(context));
}
if(Detailed.Expression != null)
{
targetCommand.AddParameter("Detailed", Detailed.Get(context));
}
if(Full.Expression != null)
{
targetCommand.AddParameter("Full", Full.Get(context));
}
if(Examples.Expression != null)
{
targetCommand.AddParameter("Examples", Examples.Get(context));
}
if(Parameter.Expression != null)
{
targetCommand.AddParameter("Parameter", Parameter.Get(context));
}
if(Online.Expression != null)
{
targetCommand.AddParameter("Online", Online.Get(context));
}
if(ShowWindow.Expression != null)
{
targetCommand.AddParameter("ShowWindow", ShowWindow.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,202 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetJob()
{
this.DisplayName = "Get-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Job"; } }
// Arguments
/// <summary>
/// Provides access to the IncludeChildJob parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> IncludeChildJob { get; set; }
/// <summary>
/// Provides access to the ChildJobState parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> ChildJobState { get; set; }
/// <summary>
/// Provides access to the HasMoreData parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Boolean> HasMoreData { get; set; }
/// <summary>
/// Provides access to the Before parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.DateTime> Before { get; set; }
/// <summary>
/// Provides access to the After parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.DateTime> After { get; set; }
/// <summary>
/// Provides access to the Newest parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32> Newest { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Command parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Command { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(IncludeChildJob.Expression != null)
{
targetCommand.AddParameter("IncludeChildJob", IncludeChildJob.Get(context));
}
if(ChildJobState.Expression != null)
{
targetCommand.AddParameter("ChildJobState", ChildJobState.Get(context));
}
if(HasMoreData.Expression != null)
{
targetCommand.AddParameter("HasMoreData", HasMoreData.Get(context));
}
if(Before.Expression != null)
{
targetCommand.AddParameter("Before", Before.Get(context));
}
if(After.Expression != null)
{
targetCommand.AddParameter("After", After.Get(context));
}
if(Newest.Expression != null)
{
targetCommand.AddParameter("Newest", Newest.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Command.Expression != null)
{
targetCommand.AddParameter("Command", Command.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,166 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-Module command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetModule : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetModule()
{
this.DisplayName = "Get-Module";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Module"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the FullyQualifiedName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.PowerShell.Commands.ModuleSpecification[]> FullyQualifiedName { get; set; }
/// <summary>
/// Provides access to the All parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> All { get; set; }
/// <summary>
/// Provides access to the ListAvailable parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ListAvailable { get; set; }
/// <summary>
/// Provides access to the Refresh parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Refresh { get; set; }
/// <summary>
/// Provides access to the PSSession parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSession> PSSession { get; set; }
/// <summary>
/// Provides access to the CimSession parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.Management.Infrastructure.CimSession> CimSession { get; set; }
/// <summary>
/// Provides access to the CimResourceUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Uri> CimResourceUri { get; set; }
/// <summary>
/// Provides access to the CimNamespace parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> CimNamespace { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(FullyQualifiedName.Expression != null)
{
targetCommand.AddParameter("FullyQualifiedName", FullyQualifiedName.Get(context));
}
if(All.Expression != null)
{
targetCommand.AddParameter("All", All.Get(context));
}
if(ListAvailable.Expression != null)
{
targetCommand.AddParameter("ListAvailable", ListAvailable.Get(context));
}
if(Refresh.Expression != null)
{
targetCommand.AddParameter("Refresh", Refresh.Get(context));
}
if(PSSession.Expression != null)
{
targetCommand.AddParameter("PSSession", PSSession.Get(context));
}
if(CimSession.Expression != null)
{
targetCommand.AddParameter("CimSession", CimSession.Get(context));
}
if(CimResourceUri.Expression != null)
{
targetCommand.AddParameter("CimResourceUri", CimResourceUri.Get(context));
}
if(CimNamespace.Expression != null)
{
targetCommand.AddParameter("CimNamespace", CimNamespace.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,286 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-PSSession command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetPSSession : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetPSSession()
{
this.DisplayName = "Get-PSSession";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-PSSession"; } }
// Arguments
/// <summary>
/// Provides access to the ComputerName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ComputerName { get; set; }
/// <summary>
/// Provides access to the ApplicationName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ApplicationName { get; set; }
/// <summary>
/// Provides access to the ConnectionUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Uri[]> ConnectionUri { get; set; }
/// <summary>
/// Provides access to the ConfigurationName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ConfigurationName { get; set; }
/// <summary>
/// Provides access to the AllowRedirection parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> AllowRedirection { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the Credential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> Credential { get; set; }
/// <summary>
/// Provides access to the Authentication parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.AuthenticationMechanism> Authentication { get; set; }
/// <summary>
/// Provides access to the CertificateThumbprint parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> CertificateThumbprint { get; set; }
/// <summary>
/// Provides access to the Port parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32> Port { get; set; }
/// <summary>
/// Provides access to the UseSSL parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> UseSSL { get; set; }
/// <summary>
/// Provides access to the ThrottleLimit parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32> ThrottleLimit { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.PowerShell.Commands.SessionFilterState> State { get; set; }
/// <summary>
/// Provides access to the SessionOption parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Remoting.PSSessionOption> SessionOption { get; set; }
/// <summary>
/// Provides access to the PSSessionId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> PSSessionId { get; set; }
/// <summary>
/// Provides access to the ContainerId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ContainerId { get; set; }
/// <summary>
/// Provides access to the VMId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> VMId { get; set; }
/// <summary>
/// Provides access to the VMName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> VMName { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(ComputerName.Expression != null)
{
targetCommand.AddParameter("ComputerName", ComputerName.Get(context));
}
if(ApplicationName.Expression != null)
{
targetCommand.AddParameter("ApplicationName", ApplicationName.Get(context));
}
if(ConnectionUri.Expression != null)
{
targetCommand.AddParameter("ConnectionUri", ConnectionUri.Get(context));
}
if(ConfigurationName.Expression != null)
{
targetCommand.AddParameter("ConfigurationName", ConfigurationName.Get(context));
}
if(AllowRedirection.Expression != null)
{
targetCommand.AddParameter("AllowRedirection", AllowRedirection.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(Credential.Expression != null)
{
targetCommand.AddParameter("Credential", Credential.Get(context));
}
if(Authentication.Expression != null)
{
targetCommand.AddParameter("Authentication", Authentication.Get(context));
}
if(CertificateThumbprint.Expression != null)
{
targetCommand.AddParameter("CertificateThumbprint", CertificateThumbprint.Get(context));
}
if(Port.Expression != null)
{
targetCommand.AddParameter("Port", Port.Get(context));
}
if(UseSSL.Expression != null)
{
targetCommand.AddParameter("UseSSL", UseSSL.Get(context));
}
if(ThrottleLimit.Expression != null)
{
targetCommand.AddParameter("ThrottleLimit", ThrottleLimit.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(SessionOption.Expression != null)
{
targetCommand.AddParameter("SessionOption", SessionOption.Get(context));
}
if(PSSessionId.Expression != null)
{
targetCommand.AddParameter("Id", PSSessionId.Get(context));
}
if(ContainerId.Expression != null)
{
targetCommand.AddParameter("ContainerId", ContainerId.Get(context));
}
if(VMId.Expression != null)
{
targetCommand.AddParameter("VMId", VMId.Get(context));
}
if(VMName.Expression != null)
{
targetCommand.AddParameter("VMName", VMName.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,82 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Get-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class GetPSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public GetPSSessionConfiguration()
{
this.DisplayName = "Get-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,490 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\New-ModuleManifest command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class NewModuleManifest : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public NewModuleManifest()
{
this.DisplayName = "New-ModuleManifest";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\New-ModuleManifest"; } }
// Arguments
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
/// <summary>
/// Provides access to the NestedModules parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> NestedModules { get; set; }
/// <summary>
/// Provides access to the Guid parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid> Guid { get; set; }
/// <summary>
/// Provides access to the Author parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Author { get; set; }
/// <summary>
/// Provides access to the CompanyName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> CompanyName { get; set; }
/// <summary>
/// Provides access to the Copyright parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Copyright { get; set; }
/// <summary>
/// Provides access to the RootModule parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> RootModule { get; set; }
/// <summary>
/// Provides access to the ModuleVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> ModuleVersion { get; set; }
/// <summary>
/// Provides access to the Description parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Description { get; set; }
/// <summary>
/// Provides access to the ProcessorArchitecture parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Reflection.ProcessorArchitecture> ProcessorArchitecture { get; set; }
/// <summary>
/// Provides access to the PowerShellVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> PowerShellVersion { get; set; }
/// <summary>
/// Provides access to the ClrVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> ClrVersion { get; set; }
/// <summary>
/// Provides access to the DotNetFrameworkVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> DotNetFrameworkVersion { get; set; }
/// <summary>
/// Provides access to the PowerShellHostName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> PowerShellHostName { get; set; }
/// <summary>
/// Provides access to the PowerShellHostVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> PowerShellHostVersion { get; set; }
/// <summary>
/// Provides access to the RequiredModules parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> RequiredModules { get; set; }
/// <summary>
/// Provides access to the TypesToProcess parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> TypesToProcess { get; set; }
/// <summary>
/// Provides access to the FormatsToProcess parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> FormatsToProcess { get; set; }
/// <summary>
/// Provides access to the ScriptsToProcess parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ScriptsToProcess { get; set; }
/// <summary>
/// Provides access to the RequiredAssemblies parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> RequiredAssemblies { get; set; }
/// <summary>
/// Provides access to the FileList parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> FileList { get; set; }
/// <summary>
/// Provides access to the ModuleList parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ModuleList { get; set; }
/// <summary>
/// Provides access to the FunctionsToExport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> FunctionsToExport { get; set; }
/// <summary>
/// Provides access to the AliasesToExport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> AliasesToExport { get; set; }
/// <summary>
/// Provides access to the VariablesToExport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> VariablesToExport { get; set; }
/// <summary>
/// Provides access to the CmdletsToExport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> CmdletsToExport { get; set; }
/// <summary>
/// Provides access to the DscResourcesToExport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> DscResourcesToExport { get; set; }
/// <summary>
/// Provides access to the PrivateData parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object> PrivateData { get; set; }
/// <summary>
/// Provides access to the Tags parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Tags { get; set; }
/// <summary>
/// Provides access to the ProjectUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Uri> ProjectUri { get; set; }
/// <summary>
/// Provides access to the LicenseUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Uri> LicenseUri { get; set; }
/// <summary>
/// Provides access to the IconUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Uri> IconUri { get; set; }
/// <summary>
/// Provides access to the ReleaseNotes parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ReleaseNotes { get; set; }
/// <summary>
/// Provides access to the HelpInfoUri parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> HelpInfoUri { get; set; }
/// <summary>
/// Provides access to the PassThru parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> PassThru { get; set; }
/// <summary>
/// Provides access to the DefaultCommandPrefix parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> DefaultCommandPrefix { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
if(NestedModules.Expression != null)
{
targetCommand.AddParameter("NestedModules", NestedModules.Get(context));
}
if(Guid.Expression != null)
{
targetCommand.AddParameter("Guid", Guid.Get(context));
}
if(Author.Expression != null)
{
targetCommand.AddParameter("Author", Author.Get(context));
}
if(CompanyName.Expression != null)
{
targetCommand.AddParameter("CompanyName", CompanyName.Get(context));
}
if(Copyright.Expression != null)
{
targetCommand.AddParameter("Copyright", Copyright.Get(context));
}
if(RootModule.Expression != null)
{
targetCommand.AddParameter("RootModule", RootModule.Get(context));
}
if(ModuleVersion.Expression != null)
{
targetCommand.AddParameter("ModuleVersion", ModuleVersion.Get(context));
}
if(Description.Expression != null)
{
targetCommand.AddParameter("Description", Description.Get(context));
}
if(ProcessorArchitecture.Expression != null)
{
targetCommand.AddParameter("ProcessorArchitecture", ProcessorArchitecture.Get(context));
}
if(PowerShellVersion.Expression != null)
{
targetCommand.AddParameter("PowerShellVersion", PowerShellVersion.Get(context));
}
if(ClrVersion.Expression != null)
{
targetCommand.AddParameter("ClrVersion", ClrVersion.Get(context));
}
if(DotNetFrameworkVersion.Expression != null)
{
targetCommand.AddParameter("DotNetFrameworkVersion", DotNetFrameworkVersion.Get(context));
}
if(PowerShellHostName.Expression != null)
{
targetCommand.AddParameter("PowerShellHostName", PowerShellHostName.Get(context));
}
if(PowerShellHostVersion.Expression != null)
{
targetCommand.AddParameter("PowerShellHostVersion", PowerShellHostVersion.Get(context));
}
if(RequiredModules.Expression != null)
{
targetCommand.AddParameter("RequiredModules", RequiredModules.Get(context));
}
if(TypesToProcess.Expression != null)
{
targetCommand.AddParameter("TypesToProcess", TypesToProcess.Get(context));
}
if(FormatsToProcess.Expression != null)
{
targetCommand.AddParameter("FormatsToProcess", FormatsToProcess.Get(context));
}
if(ScriptsToProcess.Expression != null)
{
targetCommand.AddParameter("ScriptsToProcess", ScriptsToProcess.Get(context));
}
if(RequiredAssemblies.Expression != null)
{
targetCommand.AddParameter("RequiredAssemblies", RequiredAssemblies.Get(context));
}
if(FileList.Expression != null)
{
targetCommand.AddParameter("FileList", FileList.Get(context));
}
if(ModuleList.Expression != null)
{
targetCommand.AddParameter("ModuleList", ModuleList.Get(context));
}
if(FunctionsToExport.Expression != null)
{
targetCommand.AddParameter("FunctionsToExport", FunctionsToExport.Get(context));
}
if(AliasesToExport.Expression != null)
{
targetCommand.AddParameter("AliasesToExport", AliasesToExport.Get(context));
}
if(VariablesToExport.Expression != null)
{
targetCommand.AddParameter("VariablesToExport", VariablesToExport.Get(context));
}
if(CmdletsToExport.Expression != null)
{
targetCommand.AddParameter("CmdletsToExport", CmdletsToExport.Get(context));
}
if(DscResourcesToExport.Expression != null)
{
targetCommand.AddParameter("DscResourcesToExport", DscResourcesToExport.Get(context));
}
if(PrivateData.Expression != null)
{
targetCommand.AddParameter("PrivateData", PrivateData.Get(context));
}
if(Tags.Expression != null)
{
targetCommand.AddParameter("Tags", Tags.Get(context));
}
if(ProjectUri.Expression != null)
{
targetCommand.AddParameter("ProjectUri", ProjectUri.Get(context));
}
if(LicenseUri.Expression != null)
{
targetCommand.AddParameter("LicenseUri", LicenseUri.Get(context));
}
if(IconUri.Expression != null)
{
targetCommand.AddParameter("IconUri", IconUri.Get(context));
}
if(ReleaseNotes.Expression != null)
{
targetCommand.AddParameter("ReleaseNotes", ReleaseNotes.Get(context));
}
if(HelpInfoUri.Expression != null)
{
targetCommand.AddParameter("HelpInfoUri", HelpInfoUri.Get(context));
}
if(PassThru.Expression != null)
{
targetCommand.AddParameter("PassThru", PassThru.Get(context));
}
if(DefaultCommandPrefix.Expression != null)
{
targetCommand.AddParameter("DefaultCommandPrefix", DefaultCommandPrefix.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,178 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\New-PSTransportOption command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class NewPSTransportOption : PSActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public NewPSTransportOption()
{
this.DisplayName = "New-PSTransportOption";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\New-PSTransportOption"; } }
// Arguments
/// <summary>
/// Provides access to the MaxIdleTimeoutSec parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxIdleTimeoutSec { get; set; }
/// <summary>
/// Provides access to the ProcessIdleTimeoutSec parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> ProcessIdleTimeoutSec { get; set; }
/// <summary>
/// Provides access to the MaxSessions parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxSessions { get; set; }
/// <summary>
/// Provides access to the MaxConcurrentCommandsPerSession parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxConcurrentCommandsPerSession { get; set; }
/// <summary>
/// Provides access to the MaxSessionsPerUser parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxSessionsPerUser { get; set; }
/// <summary>
/// Provides access to the MaxMemoryPerSessionMB parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxMemoryPerSessionMB { get; set; }
/// <summary>
/// Provides access to the MaxProcessesPerSession parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxProcessesPerSession { get; set; }
/// <summary>
/// Provides access to the MaxConcurrentUsers parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> MaxConcurrentUsers { get; set; }
/// <summary>
/// Provides access to the IdleTimeoutSec parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Int32>> IdleTimeoutSec { get; set; }
/// <summary>
/// Provides access to the OutputBufferingMode parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Management.Automation.Runspaces.OutputBufferingMode>> OutputBufferingMode { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(MaxIdleTimeoutSec.Expression != null)
{
targetCommand.AddParameter("MaxIdleTimeoutSec", MaxIdleTimeoutSec.Get(context));
}
if(ProcessIdleTimeoutSec.Expression != null)
{
targetCommand.AddParameter("ProcessIdleTimeoutSec", ProcessIdleTimeoutSec.Get(context));
}
if(MaxSessions.Expression != null)
{
targetCommand.AddParameter("MaxSessions", MaxSessions.Get(context));
}
if(MaxConcurrentCommandsPerSession.Expression != null)
{
targetCommand.AddParameter("MaxConcurrentCommandsPerSession", MaxConcurrentCommandsPerSession.Get(context));
}
if(MaxSessionsPerUser.Expression != null)
{
targetCommand.AddParameter("MaxSessionsPerUser", MaxSessionsPerUser.Get(context));
}
if(MaxMemoryPerSessionMB.Expression != null)
{
targetCommand.AddParameter("MaxMemoryPerSessionMB", MaxMemoryPerSessionMB.Get(context));
}
if(MaxProcessesPerSession.Expression != null)
{
targetCommand.AddParameter("MaxProcessesPerSession", MaxProcessesPerSession.Get(context));
}
if(MaxConcurrentUsers.Expression != null)
{
targetCommand.AddParameter("MaxConcurrentUsers", MaxConcurrentUsers.Get(context));
}
if(IdleTimeoutSec.Expression != null)
{
targetCommand.AddParameter("IdleTimeoutSec", IdleTimeoutSec.Get(context));
}
if(OutputBufferingMode.Expression != null)
{
targetCommand.AddParameter("OutputBufferingMode", OutputBufferingMode.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,224 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Receive-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class ReceiveJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public ReceiveJob()
{
this.DisplayName = "Receive-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Receive-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the Location parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Location { get; set; }
/// <summary>
/// Provides access to the Session parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSession[]> Session { get; set; }
/// <summary>
/// Provides access to the Keep parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Keep { get; set; }
/// <summary>
/// Provides access to the NoRecurse parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoRecurse { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the Wait parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Wait { get; set; }
/// <summary>
/// Provides access to the AutoRemoveJob parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> AutoRemoveJob { get; set; }
/// <summary>
/// Provides access to the WriteEvents parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> WriteEvents { get; set; }
/// <summary>
/// Provides access to the WriteJobInResults parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> WriteJobInResults { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Declares that this activity supports its own remoting.
/// </summary>
protected override bool SupportsCustomRemoting { get { return true; } }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(Location.Expression != null)
{
targetCommand.AddParameter("Location", Location.Get(context));
}
if(Session.Expression != null)
{
targetCommand.AddParameter("Session", Session.Get(context));
}
if(Keep.Expression != null)
{
targetCommand.AddParameter("Keep", Keep.Get(context));
}
if(NoRecurse.Expression != null)
{
targetCommand.AddParameter("NoRecurse", NoRecurse.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(Wait.Expression != null)
{
targetCommand.AddParameter("Wait", Wait.Get(context));
}
if(AutoRemoveJob.Expression != null)
{
targetCommand.AddParameter("AutoRemoveJob", AutoRemoveJob.Get(context));
}
if(WriteEvents.Expression != null)
{
targetCommand.AddParameter("WriteEvents", WriteEvents.Get(context));
}
if(WriteJobInResults.Expression != null)
{
targetCommand.AddParameter("WriteJobInResults", WriteJobInResults.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(GetIsComputerNameSpecified(context) && (PSRemotingBehavior.Get(context) == RemotingBehavior.Custom))
{
targetCommand.AddParameter("ComputerName", PSComputerName.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,334 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Register-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class RegisterPSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public RegisterPSSessionConfiguration()
{
this.DisplayName = "Register-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Register-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the ProcessorArchitecture parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ProcessorArchitecture { get; set; }
/// <summary>
/// Provides access to the SessionType parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSessionType> SessionType { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Name { get; set; }
/// <summary>
/// Provides access to the AssemblyName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> AssemblyName { get; set; }
/// <summary>
/// Provides access to the ApplicationBase parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ApplicationBase { get; set; }
/// <summary>
/// Provides access to the ConfigurationTypeName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ConfigurationTypeName { get; set; }
/// <summary>
/// Provides access to the RunAsCredential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> RunAsCredential { get; set; }
/// <summary>
/// Provides access to the ThreadApartmentState parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Threading.ApartmentState> ThreadApartmentState { get; set; }
/// <summary>
/// Provides access to the ThreadOptions parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSThreadOptions> ThreadOptions { get; set; }
/// <summary>
/// Provides access to the AccessMode parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode> AccessMode { get; set; }
/// <summary>
/// Provides access to the UseSharedProcess parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> UseSharedProcess { get; set; }
/// <summary>
/// Provides access to the StartupScript parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> StartupScript { get; set; }
/// <summary>
/// Provides access to the MaximumReceivedDataSizePerCommandMB parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Double>> MaximumReceivedDataSizePerCommandMB { get; set; }
/// <summary>
/// Provides access to the MaximumReceivedObjectSizeMB parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Double>> MaximumReceivedObjectSizeMB { get; set; }
/// <summary>
/// Provides access to the SecurityDescriptorSddl parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> SecurityDescriptorSddl { get; set; }
/// <summary>
/// Provides access to the ShowSecurityDescriptorUI parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ShowSecurityDescriptorUI { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the NoServiceRestart parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoServiceRestart { get; set; }
/// <summary>
/// Provides access to the PSVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> PSVersion { get; set; }
/// <summary>
/// Provides access to the SessionTypeOption parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSSessionTypeOption> SessionTypeOption { get; set; }
/// <summary>
/// Provides access to the TransportOption parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSTransportOption> TransportOption { get; set; }
/// <summary>
/// Provides access to the ModulesToImport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ModulesToImport { get; set; }
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(ProcessorArchitecture.Expression != null)
{
targetCommand.AddParameter("ProcessorArchitecture", ProcessorArchitecture.Get(context));
}
if(SessionType.Expression != null)
{
targetCommand.AddParameter("SessionType", SessionType.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(AssemblyName.Expression != null)
{
targetCommand.AddParameter("AssemblyName", AssemblyName.Get(context));
}
if(ApplicationBase.Expression != null)
{
targetCommand.AddParameter("ApplicationBase", ApplicationBase.Get(context));
}
if(ConfigurationTypeName.Expression != null)
{
targetCommand.AddParameter("ConfigurationTypeName", ConfigurationTypeName.Get(context));
}
if(RunAsCredential.Expression != null)
{
targetCommand.AddParameter("RunAsCredential", RunAsCredential.Get(context));
}
if(ThreadApartmentState.Expression != null)
{
targetCommand.AddParameter("ThreadApartmentState", ThreadApartmentState.Get(context));
}
if(ThreadOptions.Expression != null)
{
targetCommand.AddParameter("ThreadOptions", ThreadOptions.Get(context));
}
if(AccessMode.Expression != null)
{
targetCommand.AddParameter("AccessMode", AccessMode.Get(context));
}
if(UseSharedProcess.Expression != null)
{
targetCommand.AddParameter("UseSharedProcess", UseSharedProcess.Get(context));
}
if(StartupScript.Expression != null)
{
targetCommand.AddParameter("StartupScript", StartupScript.Get(context));
}
if(MaximumReceivedDataSizePerCommandMB.Expression != null)
{
targetCommand.AddParameter("MaximumReceivedDataSizePerCommandMB", MaximumReceivedDataSizePerCommandMB.Get(context));
}
if(MaximumReceivedObjectSizeMB.Expression != null)
{
targetCommand.AddParameter("MaximumReceivedObjectSizeMB", MaximumReceivedObjectSizeMB.Get(context));
}
if(SecurityDescriptorSddl.Expression != null)
{
targetCommand.AddParameter("SecurityDescriptorSddl", SecurityDescriptorSddl.Get(context));
}
if(ShowSecurityDescriptorUI.Expression != null)
{
targetCommand.AddParameter("ShowSecurityDescriptorUI", ShowSecurityDescriptorUI.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(NoServiceRestart.Expression != null)
{
targetCommand.AddParameter("NoServiceRestart", NoServiceRestart.Get(context));
}
if(PSVersion.Expression != null)
{
targetCommand.AddParameter("PSVersion", PSVersion.Get(context));
}
if(SessionTypeOption.Expression != null)
{
targetCommand.AddParameter("SessionTypeOption", SessionTypeOption.Get(context));
}
if(TransportOption.Expression != null)
{
targetCommand.AddParameter("TransportOption", TransportOption.Get(context));
}
if(ModulesToImport.Expression != null)
{
targetCommand.AddParameter("ModulesToImport", ModulesToImport.Get(context));
}
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,154 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Remove-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class RemoveJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public RemoveJob()
{
this.DisplayName = "Remove-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Remove-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Command parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Command { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Command.Expression != null)
{
targetCommand.AddParameter("Command", Command.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,154 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Remove-PSSession command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class RemovePSSession : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public RemovePSSession()
{
this.DisplayName = "Remove-PSSession";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Remove-PSSession"; } }
// Arguments
/// <summary>
/// Provides access to the Session parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSession[]> Session { get; set; }
/// <summary>
/// Provides access to the ContainerId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ContainerId { get; set; }
/// <summary>
/// Provides access to the VMId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> VMId { get; set; }
/// <summary>
/// Provides access to the VMName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> VMName { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the PSSessionId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> PSSessionId { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the ComputerName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> ComputerName { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Session.Expression != null)
{
targetCommand.AddParameter("Session", Session.Get(context));
}
if(ContainerId.Expression != null)
{
targetCommand.AddParameter("ContainerId", ContainerId.Get(context));
}
if(VMId.Expression != null)
{
targetCommand.AddParameter("VMId", VMId.Get(context));
}
if(VMName.Expression != null)
{
targetCommand.AddParameter("VMName", VMName.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(PSSessionId.Expression != null)
{
targetCommand.AddParameter("Id", PSSessionId.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(ComputerName.Expression != null)
{
targetCommand.AddParameter("ComputerName", ComputerName.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,142 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Resume-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class ResumeJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public ResumeJob()
{
this.DisplayName = "Resume-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Resume-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the Wait parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Wait { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(Wait.Expression != null)
{
targetCommand.AddParameter("Wait", Wait.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,154 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Save-Help command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class SaveHelp : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public SaveHelp()
{
this.DisplayName = "Save-Help";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Save-Help"; } }
// Arguments
/// <summary>
/// Provides access to the DestinationPath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> DestinationPath { get; set; }
/// <summary>
/// Provides access to the LiteralPath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> LiteralPath { get; set; }
/// <summary>
/// Provides access to the Module parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSModuleInfo[]> Module { get; set; }
/// <summary>
/// Provides access to the FullyQualifiedModule parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.PowerShell.Commands.ModuleSpecification[]> FullyQualifiedModule { get; set; }
/// <summary>
/// Provides access to the UICulture parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Globalization.CultureInfo[]> UICulture { get; set; }
/// <summary>
/// Provides access to the Credential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> Credential { get; set; }
/// <summary>
/// Provides access to the UseDefaultCredentials parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> UseDefaultCredentials { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(DestinationPath.Expression != null)
{
targetCommand.AddParameter("DestinationPath", DestinationPath.Get(context));
}
if(LiteralPath.Expression != null)
{
targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
}
if(Module.Expression != null)
{
targetCommand.AddParameter("Module", Module.Get(context));
}
if(FullyQualifiedModule.Expression != null)
{
targetCommand.AddParameter("FullyQualifiedModule", FullyQualifiedModule.Get(context));
}
if(UICulture.Expression != null)
{
targetCommand.AddParameter("UICulture", UICulture.Get(context));
}
if(Credential.Expression != null)
{
targetCommand.AddParameter("Credential", Credential.Get(context));
}
if(UseDefaultCredentials.Expression != null)
{
targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,310 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Set-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class SetPSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public SetPSSessionConfiguration()
{
this.DisplayName = "Set-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Set-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Name { get; set; }
/// <summary>
/// Provides access to the AssemblyName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> AssemblyName { get; set; }
/// <summary>
/// Provides access to the ApplicationBase parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ApplicationBase { get; set; }
/// <summary>
/// Provides access to the ConfigurationTypeName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> ConfigurationTypeName { get; set; }
/// <summary>
/// Provides access to the RunAsCredential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> RunAsCredential { get; set; }
/// <summary>
/// Provides access to the ThreadApartmentState parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Threading.ApartmentState> ThreadApartmentState { get; set; }
/// <summary>
/// Provides access to the ThreadOptions parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSThreadOptions> ThreadOptions { get; set; }
/// <summary>
/// Provides access to the AccessMode parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.PSSessionConfigurationAccessMode> AccessMode { get; set; }
/// <summary>
/// Provides access to the UseSharedProcess parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> UseSharedProcess { get; set; }
/// <summary>
/// Provides access to the StartupScript parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> StartupScript { get; set; }
/// <summary>
/// Provides access to the MaximumReceivedDataSizePerCommandMB parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Double>> MaximumReceivedDataSizePerCommandMB { get; set; }
/// <summary>
/// Provides access to the MaximumReceivedObjectSizeMB parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Nullable<System.Double>> MaximumReceivedObjectSizeMB { get; set; }
/// <summary>
/// Provides access to the SecurityDescriptorSddl parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> SecurityDescriptorSddl { get; set; }
/// <summary>
/// Provides access to the ShowSecurityDescriptorUI parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> ShowSecurityDescriptorUI { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the NoServiceRestart parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoServiceRestart { get; set; }
/// <summary>
/// Provides access to the PSVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> PSVersion { get; set; }
/// <summary>
/// Provides access to the SessionTypeOption parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSSessionTypeOption> SessionTypeOption { get; set; }
/// <summary>
/// Provides access to the TransportOption parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSTransportOption> TransportOption { get; set; }
/// <summary>
/// Provides access to the ModulesToImport parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ModulesToImport { get; set; }
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(AssemblyName.Expression != null)
{
targetCommand.AddParameter("AssemblyName", AssemblyName.Get(context));
}
if(ApplicationBase.Expression != null)
{
targetCommand.AddParameter("ApplicationBase", ApplicationBase.Get(context));
}
if(ConfigurationTypeName.Expression != null)
{
targetCommand.AddParameter("ConfigurationTypeName", ConfigurationTypeName.Get(context));
}
if(RunAsCredential.Expression != null)
{
targetCommand.AddParameter("RunAsCredential", RunAsCredential.Get(context));
}
if(ThreadApartmentState.Expression != null)
{
targetCommand.AddParameter("ThreadApartmentState", ThreadApartmentState.Get(context));
}
if(ThreadOptions.Expression != null)
{
targetCommand.AddParameter("ThreadOptions", ThreadOptions.Get(context));
}
if(AccessMode.Expression != null)
{
targetCommand.AddParameter("AccessMode", AccessMode.Get(context));
}
if(UseSharedProcess.Expression != null)
{
targetCommand.AddParameter("UseSharedProcess", UseSharedProcess.Get(context));
}
if(StartupScript.Expression != null)
{
targetCommand.AddParameter("StartupScript", StartupScript.Get(context));
}
if(MaximumReceivedDataSizePerCommandMB.Expression != null)
{
targetCommand.AddParameter("MaximumReceivedDataSizePerCommandMB", MaximumReceivedDataSizePerCommandMB.Get(context));
}
if(MaximumReceivedObjectSizeMB.Expression != null)
{
targetCommand.AddParameter("MaximumReceivedObjectSizeMB", MaximumReceivedObjectSizeMB.Get(context));
}
if(SecurityDescriptorSddl.Expression != null)
{
targetCommand.AddParameter("SecurityDescriptorSddl", SecurityDescriptorSddl.Get(context));
}
if(ShowSecurityDescriptorUI.Expression != null)
{
targetCommand.AddParameter("ShowSecurityDescriptorUI", ShowSecurityDescriptorUI.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(NoServiceRestart.Expression != null)
{
targetCommand.AddParameter("NoServiceRestart", NoServiceRestart.Get(context));
}
if(PSVersion.Expression != null)
{
targetCommand.AddParameter("PSVersion", PSVersion.Get(context));
}
if(SessionTypeOption.Expression != null)
{
targetCommand.AddParameter("SessionTypeOption", SessionTypeOption.Get(context));
}
if(TransportOption.Expression != null)
{
targetCommand.AddParameter("TransportOption", TransportOption.Get(context));
}
if(ModulesToImport.Expression != null)
{
targetCommand.AddParameter("ModulesToImport", ModulesToImport.Get(context));
}
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,226 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Start-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class StartJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public StartJob()
{
this.DisplayName = "Start-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Start-Job"; } }
// Arguments
/// <summary>
/// Provides access to the DefinitionName parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> DefinitionName { get; set; }
/// <summary>
/// Provides access to the DefinitionPath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> DefinitionPath { get; set; }
/// <summary>
/// Provides access to the Type parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Type { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Name { get; set; }
/// <summary>
/// Provides access to the ScriptBlock parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock> ScriptBlock { get; set; }
/// <summary>
/// Provides access to the Credential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> Credential { get; set; }
/// <summary>
/// Provides access to the FilePath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> FilePath { get; set; }
/// <summary>
/// Provides access to the LiteralPath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> LiteralPath { get; set; }
/// <summary>
/// Provides access to the Authentication parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Runspaces.AuthenticationMechanism> Authentication { get; set; }
/// <summary>
/// Provides access to the InitializationScript parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock> InitializationScript { get; set; }
/// <summary>
/// Provides access to the RunAs32 parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> RunAs32 { get; set; }
/// <summary>
/// Provides access to the PSVersion parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Version> PSVersion { get; set; }
/// <summary>
/// Provides access to the InputObject parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSObject> InputObject { get; set; }
/// <summary>
/// Provides access to the ArgumentList parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object[]> ArgumentList { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(DefinitionName.Expression != null)
{
targetCommand.AddParameter("DefinitionName", DefinitionName.Get(context));
}
if(DefinitionPath.Expression != null)
{
targetCommand.AddParameter("DefinitionPath", DefinitionPath.Get(context));
}
if(Type.Expression != null)
{
targetCommand.AddParameter("Type", Type.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(ScriptBlock.Expression != null)
{
targetCommand.AddParameter("ScriptBlock", ScriptBlock.Get(context));
}
if(Credential.Expression != null)
{
targetCommand.AddParameter("Credential", Credential.Get(context));
}
if(FilePath.Expression != null)
{
targetCommand.AddParameter("FilePath", FilePath.Get(context));
}
if(LiteralPath.Expression != null)
{
targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
}
if(Authentication.Expression != null)
{
targetCommand.AddParameter("Authentication", Authentication.Get(context));
}
if(InitializationScript.Expression != null)
{
targetCommand.AddParameter("InitializationScript", InitializationScript.Get(context));
}
if(RunAs32.Expression != null)
{
targetCommand.AddParameter("RunAs32", RunAs32.Get(context));
}
if(PSVersion.Expression != null)
{
targetCommand.AddParameter("PSVersion", PSVersion.Get(context));
}
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
}
if(ArgumentList.Expression != null)
{
targetCommand.AddParameter("ArgumentList", ArgumentList.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,142 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Stop-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class StopJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public StopJob()
{
this.DisplayName = "Stop-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Stop-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the PassThru parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> PassThru { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(PassThru.Expression != null)
{
targetCommand.AddParameter("PassThru", PassThru.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,154 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Suspend-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class SuspendJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public SuspendJob()
{
this.DisplayName = "Suspend-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Suspend-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the Wait parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Wait { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(Wait.Expression != null)
{
targetCommand.AddParameter("Wait", Wait.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,70 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Test-ModuleManifest command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class TestModuleManifest : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public TestModuleManifest()
{
this.DisplayName = "Test-ModuleManifest";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Test-ModuleManifest"; } }
// Arguments
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,70 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Test-PSSessionConfigurationFile command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class TestPSSessionConfigurationFile : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public TestPSSessionConfigurationFile()
{
this.DisplayName = "Test-PSSessionConfigurationFile";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Test-PSSessionConfigurationFile"; } }
// Arguments
/// <summary>
/// Provides access to the Path parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Path { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,94 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Unregister-PSSessionConfiguration command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class UnregisterPSSessionConfiguration : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public UnregisterPSSessionConfiguration()
{
this.DisplayName = "Unregister-PSSessionConfiguration";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Unregister-PSSessionConfiguration"; } }
// Arguments
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Name { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the NoServiceRestart parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NoServiceRestart { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(NoServiceRestart.Expression != null)
{
targetCommand.AddParameter("NoServiceRestart", NoServiceRestart.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,166 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Update-Help command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class UpdateHelp : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public UpdateHelp()
{
this.DisplayName = "Update-Help";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Update-Help"; } }
// Arguments
/// <summary>
/// Provides access to the Module parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Module { get; set; }
/// <summary>
/// Provides access to the FullyQualifiedModule parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<Microsoft.PowerShell.Commands.ModuleSpecification[]> FullyQualifiedModule { get; set; }
/// <summary>
/// Provides access to the SourcePath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> SourcePath { get; set; }
/// <summary>
/// Provides access to the LiteralPath parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> LiteralPath { get; set; }
/// <summary>
/// Provides access to the Recurse parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Recurse { get; set; }
/// <summary>
/// Provides access to the UICulture parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Globalization.CultureInfo[]> UICulture { get; set; }
/// <summary>
/// Provides access to the Credential parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSCredential> Credential { get; set; }
/// <summary>
/// Provides access to the UseDefaultCredentials parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> UseDefaultCredentials { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Module.Expression != null)
{
targetCommand.AddParameter("Module", Module.Get(context));
}
if(FullyQualifiedModule.Expression != null)
{
targetCommand.AddParameter("FullyQualifiedModule", FullyQualifiedModule.Get(context));
}
if(SourcePath.Expression != null)
{
targetCommand.AddParameter("SourcePath", SourcePath.Get(context));
}
if(LiteralPath.Expression != null)
{
targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
}
if(Recurse.Expression != null)
{
targetCommand.AddParameter("Recurse", Recurse.Get(context));
}
if(UICulture.Expression != null)
{
targetCommand.AddParameter("UICulture", UICulture.Get(context));
}
if(Credential.Expression != null)
{
targetCommand.AddParameter("Credential", Credential.Get(context));
}
if(UseDefaultCredentials.Expression != null)
{
targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,166 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Wait-Job command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class WaitJob : PSRemotingActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public WaitJob()
{
this.DisplayName = "Wait-Job";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Wait-Job"; } }
// Arguments
/// <summary>
/// Provides access to the Job parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.Job[]> Job { get; set; }
/// <summary>
/// Provides access to the Any parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Any { get; set; }
/// <summary>
/// Provides access to the Timeout parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32> Timeout { get; set; }
/// <summary>
/// Provides access to the Force parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Force { get; set; }
/// <summary>
/// Provides access to the Name parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String[]> Name { get; set; }
/// <summary>
/// Provides access to the InstanceId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Guid[]> InstanceId { get; set; }
/// <summary>
/// Provides access to the JobId parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Int32[]> JobId { get; set; }
/// <summary>
/// Provides access to the State parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.JobState> State { get; set; }
/// <summary>
/// Provides access to the Filter parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Collections.Hashtable> Filter { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(Job.Expression != null)
{
targetCommand.AddParameter("Job", Job.Get(context));
}
if(Any.Expression != null)
{
targetCommand.AddParameter("Any", Any.Get(context));
}
if(Timeout.Expression != null)
{
targetCommand.AddParameter("Timeout", Timeout.Get(context));
}
if(Force.Expression != null)
{
targetCommand.AddParameter("Force", Force.Get(context));
}
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
}
if(InstanceId.Expression != null)
{
targetCommand.AddParameter("InstanceId", InstanceId.Get(context));
}
if(JobId.Expression != null)
{
targetCommand.AddParameter("Id", JobId.Get(context));
}
if(State.Expression != null)
{
targetCommand.AddParameter("State", State.Get(context));
}
if(Filter.Expression != null)
{
targetCommand.AddParameter("Filter", Filter.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}

View file

@ -1,466 +0,0 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
using Microsoft.PowerShell.Activities;
using System.Management.Automation;
using System.Activities;
using System.Collections.Generic;
using System.ComponentModel;
namespace Microsoft.PowerShell.Core.Activities
{
/// <summary>
/// Activity to invoke the Microsoft.PowerShell.Core\Where-Object command in a Workflow.
/// </summary>
[System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
public sealed class WhereObject : PSActivity
{
/// <summary>
/// Gets the display name of the command invoked by this activity.
/// </summary>
public WhereObject()
{
this.DisplayName = "Where-Object";
}
/// <summary>
/// Gets the fully qualified name of the command invoked by this activity.
/// </summary>
public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Where-Object"; } }
// Arguments
/// <summary>
/// Provides access to the InputObject parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.PSObject> InputObject { get; set; }
/// <summary>
/// Provides access to the FilterScript parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.ScriptBlock> FilterScript { get; set; }
/// <summary>
/// Provides access to the Property parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.String> Property { get; set; }
/// <summary>
/// Provides access to the Value parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Object> Value { get; set; }
/// <summary>
/// Provides access to the EQ parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> EQ { get; set; }
/// <summary>
/// Provides access to the CEQ parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CEQ { get; set; }
/// <summary>
/// Provides access to the NE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NE { get; set; }
/// <summary>
/// Provides access to the CNE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CNE { get; set; }
/// <summary>
/// Provides access to the GT parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> GT { get; set; }
/// <summary>
/// Provides access to the CGT parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CGT { get; set; }
/// <summary>
/// Provides access to the LT parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> LT { get; set; }
/// <summary>
/// Provides access to the CLT parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CLT { get; set; }
/// <summary>
/// Provides access to the GE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> GE { get; set; }
/// <summary>
/// Provides access to the CGE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CGE { get; set; }
/// <summary>
/// Provides access to the LE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> LE { get; set; }
/// <summary>
/// Provides access to the CLE parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CLE { get; set; }
/// <summary>
/// Provides access to the Like parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Like { get; set; }
/// <summary>
/// Provides access to the CLike parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CLike { get; set; }
/// <summary>
/// Provides access to the NotLike parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NotLike { get; set; }
/// <summary>
/// Provides access to the CNotLike parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CNotLike { get; set; }
/// <summary>
/// Provides access to the Match parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Match { get; set; }
/// <summary>
/// Provides access to the CMatch parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CMatch { get; set; }
/// <summary>
/// Provides access to the NotMatch parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NotMatch { get; set; }
/// <summary>
/// Provides access to the CNotMatch parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CNotMatch { get; set; }
/// <summary>
/// Provides access to the Contains parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Contains { get; set; }
/// <summary>
/// Provides access to the CContains parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CContains { get; set; }
/// <summary>
/// Provides access to the NotContains parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NotContains { get; set; }
/// <summary>
/// Provides access to the CNotContains parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CNotContains { get; set; }
/// <summary>
/// Provides access to the In parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> In { get; set; }
/// <summary>
/// Provides access to the CIn parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CIn { get; set; }
/// <summary>
/// Provides access to the NotIn parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> NotIn { get; set; }
/// <summary>
/// Provides access to the CNotIn parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> CNotIn { get; set; }
/// <summary>
/// Provides access to the Is parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> Is { get; set; }
/// <summary>
/// Provides access to the IsNot parameter.
/// </summary>
[ParameterSpecificCategory]
[DefaultValue(null)]
public InArgument<System.Management.Automation.SwitchParameter> IsNot { get; set; }
// Module defining this command
// Optional custom code for this activity
/// <summary>
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
/// </summary>
/// <param name="context">The NativeActivityContext for the currently running activity.</param>
/// <returns>A populated instance of System.Management.Automation.PowerShell</returns>
/// <remarks>The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.</remarks>
protected override ActivityImplementationContext GetPowerShell(NativeActivityContext context)
{
System.Management.Automation.PowerShell invoker = global::System.Management.Automation.PowerShell.Create();
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
}
if(FilterScript.Expression != null)
{
targetCommand.AddParameter("FilterScript", FilterScript.Get(context));
}
if(Property.Expression != null)
{
targetCommand.AddParameter("Property", Property.Get(context));
}
if(Value.Expression != null)
{
targetCommand.AddParameter("Value", Value.Get(context));
}
if(EQ.Expression != null)
{
targetCommand.AddParameter("EQ", EQ.Get(context));
}
if(CEQ.Expression != null)
{
targetCommand.AddParameter("CEQ", CEQ.Get(context));
}
if(NE.Expression != null)
{
targetCommand.AddParameter("NE", NE.Get(context));
}
if(CNE.Expression != null)
{
targetCommand.AddParameter("CNE", CNE.Get(context));
}
if(GT.Expression != null)
{
targetCommand.AddParameter("GT", GT.Get(context));
}
if(CGT.Expression != null)
{
targetCommand.AddParameter("CGT", CGT.Get(context));
}
if(LT.Expression != null)
{
targetCommand.AddParameter("LT", LT.Get(context));
}
if(CLT.Expression != null)
{
targetCommand.AddParameter("CLT", CLT.Get(context));
}
if(GE.Expression != null)
{
targetCommand.AddParameter("GE", GE.Get(context));
}
if(CGE.Expression != null)
{
targetCommand.AddParameter("CGE", CGE.Get(context));
}
if(LE.Expression != null)
{
targetCommand.AddParameter("LE", LE.Get(context));
}
if(CLE.Expression != null)
{
targetCommand.AddParameter("CLE", CLE.Get(context));
}
if(Like.Expression != null)
{
targetCommand.AddParameter("Like", Like.Get(context));
}
if(CLike.Expression != null)
{
targetCommand.AddParameter("CLike", CLike.Get(context));
}
if(NotLike.Expression != null)
{
targetCommand.AddParameter("NotLike", NotLike.Get(context));
}
if(CNotLike.Expression != null)
{
targetCommand.AddParameter("CNotLike", CNotLike.Get(context));
}
if(Match.Expression != null)
{
targetCommand.AddParameter("Match", Match.Get(context));
}
if(CMatch.Expression != null)
{
targetCommand.AddParameter("CMatch", CMatch.Get(context));
}
if(NotMatch.Expression != null)
{
targetCommand.AddParameter("NotMatch", NotMatch.Get(context));
}
if(CNotMatch.Expression != null)
{
targetCommand.AddParameter("CNotMatch", CNotMatch.Get(context));
}
if(Contains.Expression != null)
{
targetCommand.AddParameter("Contains", Contains.Get(context));
}
if(CContains.Expression != null)
{
targetCommand.AddParameter("CContains", CContains.Get(context));
}
if(NotContains.Expression != null)
{
targetCommand.AddParameter("NotContains", NotContains.Get(context));
}
if(CNotContains.Expression != null)
{
targetCommand.AddParameter("CNotContains", CNotContains.Get(context));
}
if(In.Expression != null)
{
targetCommand.AddParameter("In", In.Get(context));
}
if(CIn.Expression != null)
{
targetCommand.AddParameter("CIn", CIn.Get(context));
}
if(NotIn.Expression != null)
{
targetCommand.AddParameter("NotIn", NotIn.Get(context));
}
if(CNotIn.Expression != null)
{
targetCommand.AddParameter("CNotIn", CNotIn.Get(context));
}
if(Is.Expression != null)
{
targetCommand.AddParameter("Is", Is.Get(context));
}
if(IsNot.Expression != null)
{
targetCommand.AddParameter("IsNot", IsNot.Get(context));
}
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
}
}