diff --git a/src/Microsoft.PowerShell.Core.Activities/AssemblyInfo.cs b/src/Microsoft.PowerShell.Core.Activities/AssemblyInfo.cs
new file mode 100644
index 000000000..7a4d1510c
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/AssemblyInfo.cs
@@ -0,0 +1,18 @@
+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")]
+
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSRemotingActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSRemotingActivity.cs
new file mode 100644
index 000000000..4fa5028c3
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSRemotingActivity.cs
@@ -0,0 +1,70 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Disable-PSRemoting command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class DisablePSRemoting : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public DisablePSRemoting()
+ {
+ this.DisplayName = "Disable-PSRemoting";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Disable-PSRemoting"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..9633b5670
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/DisablePSSessionConfigurationActivity.cs
@@ -0,0 +1,94 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Disable-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class DisablePSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public DisablePSSessionConfiguration()
+ {
+ this.DisplayName = "Disable-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Disable-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoServiceRestart parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoServiceRestart { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSRemotingActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSRemotingActivity.cs
new file mode 100644
index 000000000..2e6c601b2
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSRemotingActivity.cs
@@ -0,0 +1,82 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Enable-PSRemoting command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class EnablePSRemoting : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public EnablePSRemoting()
+ {
+ this.DisplayName = "Enable-PSRemoting";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Enable-PSRemoting"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the SkipNetworkProfileCheck parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SkipNetworkProfileCheck { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..caeef119c
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/EnablePSSessionConfigurationActivity.cs
@@ -0,0 +1,118 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Enable-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class EnablePSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public EnablePSSessionConfiguration()
+ {
+ this.DisplayName = "Enable-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Enable-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the SecurityDescriptorSddl parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecurityDescriptorSddl { get; set; }
+
+ ///
+ /// Provides access to the SkipNetworkProfileCheck parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SkipNetworkProfileCheck { get; set; }
+
+ ///
+ /// Provides access to the NoServiceRestart parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoServiceRestart { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/ForEachObjectActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/ForEachObjectActivity.cs
new file mode 100644
index 000000000..6a003bab4
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/ForEachObjectActivity.cs
@@ -0,0 +1,142 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\ForEach-Object command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ForEachObject : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ForEachObject()
+ {
+ this.DisplayName = "ForEach-Object";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\ForEach-Object"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Begin parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Begin { get; set; }
+
+ ///
+ /// Provides access to the Process parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Process { get; set; }
+
+ ///
+ /// Provides access to the End parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument End { get; set; }
+
+ ///
+ /// Provides access to the RemainingScripts parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RemainingScripts { get; set; }
+
+ ///
+ /// Provides access to the MemberName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MemberName { get; set; }
+
+ ///
+ /// Provides access to the ArgumentList parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ArgumentList { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetCommandActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetCommandActivity.cs
new file mode 100644
index 000000000..f9c6e5753
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetCommandActivity.cs
@@ -0,0 +1,226 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-Command command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetCommand : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetCommand()
+ {
+ this.DisplayName = "Get-Command";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Command"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Verb parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Verb { get; set; }
+
+ ///
+ /// Provides access to the Noun parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Noun { get; set; }
+
+ ///
+ /// Provides access to the Module parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Module { get; set; }
+
+ ///
+ /// Provides access to the FullyQualifiedModule parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FullyQualifiedModule { get; set; }
+
+ ///
+ /// Provides access to the CommandType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CommandType { get; set; }
+
+ ///
+ /// Provides access to the TotalCount parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TotalCount { get; set; }
+
+ ///
+ /// Provides access to the Syntax parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Syntax { get; set; }
+
+ ///
+ /// Provides access to the ShowCommandInfo parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ShowCommandInfo { get; set; }
+
+ ///
+ /// Provides access to the ArgumentList parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ArgumentList { get; set; }
+
+ ///
+ /// Provides access to the All parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument All { get; set; }
+
+ ///
+ /// Provides access to the ListImported parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ListImported { get; set; }
+
+ ///
+ /// Provides access to the ParameterName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ParameterName { get; set; }
+
+ ///
+ /// Provides access to the ParameterType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ParameterType { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetHelpActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetHelpActivity.cs
new file mode 100644
index 000000000..dddb48225
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetHelpActivity.cs
@@ -0,0 +1,202 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-Help command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetHelp : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetHelp()
+ {
+ this.DisplayName = "Get-Help";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Help"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the Category parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Category { get; set; }
+
+ ///
+ /// Provides access to the Component parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Component { get; set; }
+
+ ///
+ /// Provides access to the Functionality parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Functionality { get; set; }
+
+ ///
+ /// Provides access to the Role parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Role { get; set; }
+
+ ///
+ /// Provides access to the Detailed parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Detailed { get; set; }
+
+ ///
+ /// Provides access to the Full parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Full { get; set; }
+
+ ///
+ /// Provides access to the Examples parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Examples { get; set; }
+
+ ///
+ /// Provides access to the Parameter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Parameter { get; set; }
+
+ ///
+ /// Provides access to the Online parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Online { get; set; }
+
+ ///
+ /// Provides access to the ShowWindow parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ShowWindow { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetJobActivity.cs
new file mode 100644
index 000000000..45f7b89ae
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetJobActivity.cs
@@ -0,0 +1,202 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetJob()
+ {
+ this.DisplayName = "Get-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the IncludeChildJob parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeChildJob { get; set; }
+
+ ///
+ /// Provides access to the ChildJobState parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ChildJobState { get; set; }
+
+ ///
+ /// Provides access to the HasMoreData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument HasMoreData { get; set; }
+
+ ///
+ /// Provides access to the Before parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Before { get; set; }
+
+ ///
+ /// Provides access to the After parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument After { get; set; }
+
+ ///
+ /// Provides access to the Newest parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Newest { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the Command parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Command { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetModuleActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetModuleActivity.cs
new file mode 100644
index 000000000..e2a0213c5
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetModuleActivity.cs
@@ -0,0 +1,166 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-Module command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetModule : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetModule()
+ {
+ this.DisplayName = "Get-Module";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-Module"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the FullyQualifiedName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FullyQualifiedName { get; set; }
+
+ ///
+ /// Provides access to the All parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument All { get; set; }
+
+ ///
+ /// Provides access to the ListAvailable parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ListAvailable { get; set; }
+
+ ///
+ /// Provides access to the Refresh parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Refresh { get; set; }
+
+ ///
+ /// Provides access to the PSSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSSession { get; set; }
+
+ ///
+ /// Provides access to the CimSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CimSession { get; set; }
+
+ ///
+ /// Provides access to the CimResourceUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CimResourceUri { get; set; }
+
+ ///
+ /// Provides access to the CimNamespace parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CimNamespace { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionActivity.cs
new file mode 100644
index 000000000..ad802ccfc
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionActivity.cs
@@ -0,0 +1,286 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-PSSession command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetPSSession : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetPSSession()
+ {
+ this.DisplayName = "Get-PSSession";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-PSSession"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the ComputerName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ComputerName { get; set; }
+
+ ///
+ /// Provides access to the ApplicationName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ApplicationName { get; set; }
+
+ ///
+ /// Provides access to the ConnectionUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ConnectionUri { get; set; }
+
+ ///
+ /// Provides access to the ConfigurationName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ConfigurationName { get; set; }
+
+ ///
+ /// Provides access to the AllowRedirection parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AllowRedirection { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the Credential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Credential { get; set; }
+
+ ///
+ /// Provides access to the Authentication parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Authentication { get; set; }
+
+ ///
+ /// Provides access to the CertificateThumbprint parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CertificateThumbprint { get; set; }
+
+ ///
+ /// Provides access to the Port parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Port { get; set; }
+
+ ///
+ /// Provides access to the UseSSL parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseSSL { get; set; }
+
+ ///
+ /// Provides access to the ThrottleLimit parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ThrottleLimit { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the SessionOption parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionOption { get; set; }
+
+ ///
+ /// Provides access to the PSSessionId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSSessionId { get; set; }
+
+ ///
+ /// Provides access to the ContainerId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ContainerId { get; set; }
+
+ ///
+ /// Provides access to the VMId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument VMId { get; set; }
+
+ ///
+ /// Provides access to the VMName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument VMName { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..a2fb84d7d
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/GetPSSessionConfigurationActivity.cs
@@ -0,0 +1,82 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Get-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetPSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetPSSessionConfiguration()
+ {
+ this.DisplayName = "Get-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Get-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/NewModuleManifestActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/NewModuleManifestActivity.cs
new file mode 100644
index 000000000..cf66ba69f
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/NewModuleManifestActivity.cs
@@ -0,0 +1,490 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\New-ModuleManifest command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class NewModuleManifest : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public NewModuleManifest()
+ {
+ this.DisplayName = "New-ModuleManifest";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\New-ModuleManifest"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the NestedModules parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NestedModules { get; set; }
+
+ ///
+ /// Provides access to the Guid parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Guid { get; set; }
+
+ ///
+ /// Provides access to the Author parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Author { get; set; }
+
+ ///
+ /// Provides access to the CompanyName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CompanyName { get; set; }
+
+ ///
+ /// Provides access to the Copyright parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Copyright { get; set; }
+
+ ///
+ /// Provides access to the RootModule parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RootModule { get; set; }
+
+ ///
+ /// Provides access to the ModuleVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ModuleVersion { get; set; }
+
+ ///
+ /// Provides access to the Description parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Description { get; set; }
+
+ ///
+ /// Provides access to the ProcessorArchitecture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProcessorArchitecture { get; set; }
+
+ ///
+ /// Provides access to the PowerShellVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PowerShellVersion { get; set; }
+
+ ///
+ /// Provides access to the ClrVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ClrVersion { get; set; }
+
+ ///
+ /// Provides access to the DotNetFrameworkVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DotNetFrameworkVersion { get; set; }
+
+ ///
+ /// Provides access to the PowerShellHostName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PowerShellHostName { get; set; }
+
+ ///
+ /// Provides access to the PowerShellHostVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PowerShellHostVersion { get; set; }
+
+ ///
+ /// Provides access to the RequiredModules parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RequiredModules { get; set; }
+
+ ///
+ /// Provides access to the TypesToProcess parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TypesToProcess { get; set; }
+
+ ///
+ /// Provides access to the FormatsToProcess parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FormatsToProcess { get; set; }
+
+ ///
+ /// Provides access to the ScriptsToProcess parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ScriptsToProcess { get; set; }
+
+ ///
+ /// Provides access to the RequiredAssemblies parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RequiredAssemblies { get; set; }
+
+ ///
+ /// Provides access to the FileList parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FileList { get; set; }
+
+ ///
+ /// Provides access to the ModuleList parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ModuleList { get; set; }
+
+ ///
+ /// Provides access to the FunctionsToExport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FunctionsToExport { get; set; }
+
+ ///
+ /// Provides access to the AliasesToExport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AliasesToExport { get; set; }
+
+ ///
+ /// Provides access to the VariablesToExport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument VariablesToExport { get; set; }
+
+ ///
+ /// Provides access to the CmdletsToExport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CmdletsToExport { get; set; }
+
+ ///
+ /// Provides access to the DscResourcesToExport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DscResourcesToExport { get; set; }
+
+ ///
+ /// Provides access to the PrivateData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PrivateData { get; set; }
+
+ ///
+ /// Provides access to the Tags parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Tags { get; set; }
+
+ ///
+ /// Provides access to the ProjectUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProjectUri { get; set; }
+
+ ///
+ /// Provides access to the LicenseUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LicenseUri { get; set; }
+
+ ///
+ /// Provides access to the IconUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IconUri { get; set; }
+
+ ///
+ /// Provides access to the ReleaseNotes parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ReleaseNotes { get; set; }
+
+ ///
+ /// Provides access to the HelpInfoUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument HelpInfoUri { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { get; set; }
+
+ ///
+ /// Provides access to the DefaultCommandPrefix parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DefaultCommandPrefix { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/NewPSTransportOptionActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/NewPSTransportOptionActivity.cs
new file mode 100644
index 000000000..136b46250
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/NewPSTransportOptionActivity.cs
@@ -0,0 +1,178 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\New-PSTransportOption command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class NewPSTransportOption : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public NewPSTransportOption()
+ {
+ this.DisplayName = "New-PSTransportOption";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\New-PSTransportOption"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the MaxIdleTimeoutSec parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxIdleTimeoutSec { get; set; }
+
+ ///
+ /// Provides access to the ProcessIdleTimeoutSec parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> ProcessIdleTimeoutSec { get; set; }
+
+ ///
+ /// Provides access to the MaxSessions parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxSessions { get; set; }
+
+ ///
+ /// Provides access to the MaxConcurrentCommandsPerSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxConcurrentCommandsPerSession { get; set; }
+
+ ///
+ /// Provides access to the MaxSessionsPerUser parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxSessionsPerUser { get; set; }
+
+ ///
+ /// Provides access to the MaxMemoryPerSessionMB parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxMemoryPerSessionMB { get; set; }
+
+ ///
+ /// Provides access to the MaxProcessesPerSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxProcessesPerSession { get; set; }
+
+ ///
+ /// Provides access to the MaxConcurrentUsers parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaxConcurrentUsers { get; set; }
+
+ ///
+ /// Provides access to the IdleTimeoutSec parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> IdleTimeoutSec { get; set; }
+
+ ///
+ /// Provides access to the OutputBufferingMode parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> OutputBufferingMode { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/ReceiveJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/ReceiveJobActivity.cs
new file mode 100644
index 000000000..508599330
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/ReceiveJobActivity.cs
@@ -0,0 +1,224 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Receive-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ReceiveJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ReceiveJob()
+ {
+ this.DisplayName = "Receive-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Receive-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Job parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Job { get; set; }
+
+ ///
+ /// Provides access to the Location parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Location { get; set; }
+
+ ///
+ /// Provides access to the Session parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Session { get; set; }
+
+ ///
+ /// Provides access to the Keep parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Keep { get; set; }
+
+ ///
+ /// Provides access to the NoRecurse parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoRecurse { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the Wait parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Wait { get; set; }
+
+ ///
+ /// Provides access to the AutoRemoveJob parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AutoRemoveJob { get; set; }
+
+ ///
+ /// Provides access to the WriteEvents parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument WriteEvents { get; set; }
+
+ ///
+ /// Provides access to the WriteJobInResults parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument WriteJobInResults { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Declares that this activity supports its own remoting.
+ ///
+ protected override bool SupportsCustomRemoting { get { return true; } }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/RegisterPSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/RegisterPSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..77faab74b
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/RegisterPSSessionConfigurationActivity.cs
@@ -0,0 +1,334 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Register-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RegisterPSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RegisterPSSessionConfiguration()
+ {
+ this.DisplayName = "Register-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Register-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the ProcessorArchitecture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProcessorArchitecture { get; set; }
+
+ ///
+ /// Provides access to the SessionType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionType { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the AssemblyName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AssemblyName { get; set; }
+
+ ///
+ /// Provides access to the ApplicationBase parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ApplicationBase { get; set; }
+
+ ///
+ /// Provides access to the ConfigurationTypeName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ConfigurationTypeName { get; set; }
+
+ ///
+ /// Provides access to the RunAsCredential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RunAsCredential { get; set; }
+
+ ///
+ /// Provides access to the ThreadApartmentState parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ThreadApartmentState { get; set; }
+
+ ///
+ /// Provides access to the ThreadOptions parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ThreadOptions { get; set; }
+
+ ///
+ /// Provides access to the AccessMode parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AccessMode { get; set; }
+
+ ///
+ /// Provides access to the UseSharedProcess parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseSharedProcess { get; set; }
+
+ ///
+ /// Provides access to the StartupScript parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument StartupScript { get; set; }
+
+ ///
+ /// Provides access to the MaximumReceivedDataSizePerCommandMB parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaximumReceivedDataSizePerCommandMB { get; set; }
+
+ ///
+ /// Provides access to the MaximumReceivedObjectSizeMB parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaximumReceivedObjectSizeMB { get; set; }
+
+ ///
+ /// Provides access to the SecurityDescriptorSddl parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecurityDescriptorSddl { get; set; }
+
+ ///
+ /// Provides access to the ShowSecurityDescriptorUI parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ShowSecurityDescriptorUI { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoServiceRestart parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoServiceRestart { get; set; }
+
+ ///
+ /// Provides access to the PSVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSVersion { get; set; }
+
+ ///
+ /// Provides access to the SessionTypeOption parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionTypeOption { get; set; }
+
+ ///
+ /// Provides access to the TransportOption parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TransportOption { get; set; }
+
+ ///
+ /// Provides access to the ModulesToImport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ModulesToImport { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/RemoveJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/RemoveJobActivity.cs
new file mode 100644
index 000000000..0e816a7e1
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/RemoveJobActivity.cs
@@ -0,0 +1,154 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Remove-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RemoveJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RemoveJob()
+ {
+ this.DisplayName = "Remove-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Remove-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Job parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Job { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the Command parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Command { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/RemovePSSessionActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/RemovePSSessionActivity.cs
new file mode 100644
index 000000000..b5d22d5df
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/RemovePSSessionActivity.cs
@@ -0,0 +1,154 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Remove-PSSession command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RemovePSSession : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RemovePSSession()
+ {
+ this.DisplayName = "Remove-PSSession";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Remove-PSSession"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Session parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Session { get; set; }
+
+ ///
+ /// Provides access to the ContainerId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ContainerId { get; set; }
+
+ ///
+ /// Provides access to the VMId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument VMId { get; set; }
+
+ ///
+ /// Provides access to the VMName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument VMName { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the PSSessionId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSSessionId { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the ComputerName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ComputerName { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/ResumeJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/ResumeJobActivity.cs
new file mode 100644
index 000000000..9a81c76b6
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/ResumeJobActivity.cs
@@ -0,0 +1,142 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Resume-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ResumeJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ResumeJob()
+ {
+ this.DisplayName = "Resume-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Resume-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Job parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Job { get; set; }
+
+ ///
+ /// Provides access to the Wait parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Wait { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/SaveHelpActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/SaveHelpActivity.cs
new file mode 100644
index 000000000..b8fd58045
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/SaveHelpActivity.cs
@@ -0,0 +1,154 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Save-Help command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SaveHelp : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SaveHelp()
+ {
+ this.DisplayName = "Save-Help";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Save-Help"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the DestinationPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DestinationPath { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the Module parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Module { get; set; }
+
+ ///
+ /// Provides access to the FullyQualifiedModule parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FullyQualifiedModule { get; set; }
+
+ ///
+ /// Provides access to the UICulture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UICulture { get; set; }
+
+ ///
+ /// Provides access to the Credential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Credential { get; set; }
+
+ ///
+ /// Provides access to the UseDefaultCredentials parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseDefaultCredentials { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/SetPSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/SetPSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..979269fcd
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/SetPSSessionConfigurationActivity.cs
@@ -0,0 +1,310 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Set-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SetPSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SetPSSessionConfiguration()
+ {
+ this.DisplayName = "Set-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Set-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the AssemblyName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AssemblyName { get; set; }
+
+ ///
+ /// Provides access to the ApplicationBase parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ApplicationBase { get; set; }
+
+ ///
+ /// Provides access to the ConfigurationTypeName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ConfigurationTypeName { get; set; }
+
+ ///
+ /// Provides access to the RunAsCredential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RunAsCredential { get; set; }
+
+ ///
+ /// Provides access to the ThreadApartmentState parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ThreadApartmentState { get; set; }
+
+ ///
+ /// Provides access to the ThreadOptions parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ThreadOptions { get; set; }
+
+ ///
+ /// Provides access to the AccessMode parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AccessMode { get; set; }
+
+ ///
+ /// Provides access to the UseSharedProcess parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseSharedProcess { get; set; }
+
+ ///
+ /// Provides access to the StartupScript parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument StartupScript { get; set; }
+
+ ///
+ /// Provides access to the MaximumReceivedDataSizePerCommandMB parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaximumReceivedDataSizePerCommandMB { get; set; }
+
+ ///
+ /// Provides access to the MaximumReceivedObjectSizeMB parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> MaximumReceivedObjectSizeMB { get; set; }
+
+ ///
+ /// Provides access to the SecurityDescriptorSddl parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecurityDescriptorSddl { get; set; }
+
+ ///
+ /// Provides access to the ShowSecurityDescriptorUI parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ShowSecurityDescriptorUI { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoServiceRestart parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoServiceRestart { get; set; }
+
+ ///
+ /// Provides access to the PSVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSVersion { get; set; }
+
+ ///
+ /// Provides access to the SessionTypeOption parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionTypeOption { get; set; }
+
+ ///
+ /// Provides access to the TransportOption parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TransportOption { get; set; }
+
+ ///
+ /// Provides access to the ModulesToImport parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ModulesToImport { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/StartJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/StartJobActivity.cs
new file mode 100644
index 000000000..740fc5681
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/StartJobActivity.cs
@@ -0,0 +1,226 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Start-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class StartJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public StartJob()
+ {
+ this.DisplayName = "Start-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Start-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the DefinitionName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DefinitionName { get; set; }
+
+ ///
+ /// Provides access to the DefinitionPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DefinitionPath { get; set; }
+
+ ///
+ /// Provides access to the Type parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Type { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the ScriptBlock parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ScriptBlock { get; set; }
+
+ ///
+ /// Provides access to the Credential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Credential { get; set; }
+
+ ///
+ /// Provides access to the FilePath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument FilePath { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the Authentication parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Authentication { get; set; }
+
+ ///
+ /// Provides access to the InitializationScript parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InitializationScript { get; set; }
+
+ ///
+ /// Provides access to the RunAs32 parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument RunAs32 { get; set; }
+
+ ///
+ /// Provides access to the PSVersion parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PSVersion { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the ArgumentList parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ArgumentList { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/StopJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/StopJobActivity.cs
new file mode 100644
index 000000000..db4248cab
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/StopJobActivity.cs
@@ -0,0 +1,142 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Stop-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class StopJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public StopJob()
+ {
+ this.DisplayName = "Stop-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Stop-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Job parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Job { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/SuspendJobActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/SuspendJobActivity.cs
new file mode 100644
index 000000000..261eb1993
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/SuspendJobActivity.cs
@@ -0,0 +1,154 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Suspend-Job command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SuspendJob : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SuspendJob()
+ {
+ this.DisplayName = "Suspend-Job";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Suspend-Job"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Job parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Job { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the Wait parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Wait { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InstanceId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InstanceId { get; set; }
+
+ ///
+ /// Provides access to the JobId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument JobId { get; set; }
+
+ ///
+ /// Provides access to the State parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument State { get; set; }
+
+ ///
+ /// Provides access to the Filter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Filter { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/TestModuleManifestActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/TestModuleManifestActivity.cs
new file mode 100644
index 000000000..db36c3713
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/TestModuleManifestActivity.cs
@@ -0,0 +1,70 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Test-ModuleManifest command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class TestModuleManifest : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public TestModuleManifest()
+ {
+ this.DisplayName = "Test-ModuleManifest";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Test-ModuleManifest"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/TestPSSessionConfigurationFileActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/TestPSSessionConfigurationFileActivity.cs
new file mode 100644
index 000000000..bfdfa05b3
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/TestPSSessionConfigurationFileActivity.cs
@@ -0,0 +1,70 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Test-PSSessionConfigurationFile command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class TestPSSessionConfigurationFile : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public TestPSSessionConfigurationFile()
+ {
+ this.DisplayName = "Test-PSSessionConfigurationFile";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Test-PSSessionConfigurationFile"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///
+ /// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
+ ///
+ /// The NativeActivityContext for the currently running activity.
+ /// A populated instance of Sytem.Management.Automation.PowerShell
+ /// The infrastructure takes responsibility for closing and disposing the PowerShell instance returned.
+ 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 };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Core.Activities/Generated/UnregisterPSSessionConfigurationActivity.cs b/src/Microsoft.PowerShell.Core.Activities/Generated/UnregisterPSSessionConfigurationActivity.cs
new file mode 100644
index 000000000..61d5fc6da
--- /dev/null
+++ b/src/Microsoft.PowerShell.Core.Activities/Generated/UnregisterPSSessionConfigurationActivity.cs
@@ -0,0 +1,94 @@
+//
+// 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
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Core\Unregister-PSSessionConfiguration command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class UnregisterPSSessionConfiguration : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public UnregisterPSSessionConfiguration()
+ {
+ this.DisplayName = "Unregister-PSSessionConfiguration";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Core\\Unregister-PSSessionConfiguration"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoServiceRestart parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoServiceRestart { get; set; }
+
+
+ // Module defining this command
+
+
+ // Optional custom code for this activity
+
+
+ ///