diff --git a/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs b/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs
new file mode 100644
index 000000000..4156ed72c
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs
@@ -0,0 +1,19 @@
+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.Resources.NeutralResourcesLanguage("en")]
+[assembly: System.Runtime.InteropServices.ComVisible(false)]
+
+[assembly: AssemblyConfiguration("")]
+[assembly: ReliabilityContractAttribute(Consistency.MayCorruptAppDomain, Cer.MayFail)]
+[assembly: AssemblyTitle("Microsoft.PowerShell.Utility.Activities")]
+[assembly: AssemblyDescription("Microsoft.PowerShell.Utility.Activities")]
+
+[module: SuppressMessage("Microsoft.Design", "CA1014:MarkAssembliesWithClsCompliant")]
+
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs
new file mode 100644
index 000000000..27b8f4cbb
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs
@@ -0,0 +1,190 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Add-Member command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class AddMember : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public AddMember()
+ {
+ this.DisplayName = "Add-Member";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Member"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the MemberType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MemberType { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the Value parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Value { get; set; }
+
+ ///
+ /// Provides access to the SecondValue parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SecondValue { get; set; }
+
+ ///
+ /// Provides access to the TypeName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TypeName { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { get; set; }
+
+ ///
+ /// Provides access to the NotePropertyName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NotePropertyName { get; set; }
+
+ ///
+ /// Provides access to the NotePropertyValue parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NotePropertyValue { get; set; }
+
+ ///
+ /// Provides access to the NotePropertyMembers parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NotePropertyMembers { 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(MemberType.Expression != null)
+ {
+ targetCommand.AddParameter("MemberType", MemberType.Get(context));
+ }
+
+ if(Name.Expression != null)
+ {
+ targetCommand.AddParameter("Name", Name.Get(context));
+ }
+
+ if(Value.Expression != null)
+ {
+ targetCommand.AddParameter("Value", Value.Get(context));
+ }
+
+ if(SecondValue.Expression != null)
+ {
+ targetCommand.AddParameter("SecondValue", SecondValue.Get(context));
+ }
+
+ if(TypeName.Expression != null)
+ {
+ targetCommand.AddParameter("TypeName", TypeName.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(PassThru.Expression != null)
+ {
+ targetCommand.AddParameter("PassThru", PassThru.Get(context));
+ }
+
+ if(NotePropertyName.Expression != null)
+ {
+ targetCommand.AddParameter("NotePropertyName", NotePropertyName.Get(context));
+ }
+
+ if(NotePropertyValue.Expression != null)
+ {
+ targetCommand.AddParameter("NotePropertyValue", NotePropertyValue.Get(context));
+ }
+
+ if(NotePropertyMembers.Expression != null)
+ {
+ targetCommand.AddParameter("NotePropertyMembers", NotePropertyMembers.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs
new file mode 100644
index 000000000..44cc3a74d
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs
@@ -0,0 +1,250 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Add-Type command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class AddType : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public AddType()
+ {
+ this.DisplayName = "Add-Type";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Type"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the CodeDomProvider parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CodeDomProvider { get; set; }
+
+ ///
+ /// Provides access to the CompilerParameters parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CompilerParameters { get; set; }
+
+ ///
+ /// Provides access to the TypeDefinition parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TypeDefinition { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the MemberDefinition parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MemberDefinition { get; set; }
+
+ ///
+ /// Provides access to the Namespace parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Namespace { get; set; }
+
+ ///
+ /// Provides access to the UsingNamespace parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UsingNamespace { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the AssemblyName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AssemblyName { get; set; }
+
+ ///
+ /// Provides access to the Language parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Language { get; set; }
+
+ ///
+ /// Provides access to the ReferencedAssemblies parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ReferencedAssemblies { get; set; }
+
+ ///
+ /// Provides access to the OutputAssembly parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OutputAssembly { get; set; }
+
+ ///
+ /// Provides access to the OutputType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OutputType { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { get; set; }
+
+ ///
+ /// Provides access to the IgnoreWarnings parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IgnoreWarnings { 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(CodeDomProvider.Expression != null)
+ {
+ targetCommand.AddParameter("CodeDomProvider", CodeDomProvider.Get(context));
+ }
+
+ if(CompilerParameters.Expression != null)
+ {
+ targetCommand.AddParameter("CompilerParameters", CompilerParameters.Get(context));
+ }
+
+ if(TypeDefinition.Expression != null)
+ {
+ targetCommand.AddParameter("TypeDefinition", TypeDefinition.Get(context));
+ }
+
+ if(Name.Expression != null)
+ {
+ targetCommand.AddParameter("Name", Name.Get(context));
+ }
+
+ if(MemberDefinition.Expression != null)
+ {
+ targetCommand.AddParameter("MemberDefinition", MemberDefinition.Get(context));
+ }
+
+ if(Namespace.Expression != null)
+ {
+ targetCommand.AddParameter("Namespace", Namespace.Get(context));
+ }
+
+ if(UsingNamespace.Expression != null)
+ {
+ targetCommand.AddParameter("UsingNamespace", UsingNamespace.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(AssemblyName.Expression != null)
+ {
+ targetCommand.AddParameter("AssemblyName", AssemblyName.Get(context));
+ }
+
+ if(Language.Expression != null)
+ {
+ targetCommand.AddParameter("Language", Language.Get(context));
+ }
+
+ if(ReferencedAssemblies.Expression != null)
+ {
+ targetCommand.AddParameter("ReferencedAssemblies", ReferencedAssemblies.Get(context));
+ }
+
+ if(OutputAssembly.Expression != null)
+ {
+ targetCommand.AddParameter("OutputAssembly", OutputAssembly.Get(context));
+ }
+
+ if(OutputType.Expression != null)
+ {
+ targetCommand.AddParameter("OutputType", OutputType.Get(context));
+ }
+
+ if(PassThru.Expression != null)
+ {
+ targetCommand.AddParameter("PassThru", PassThru.Get(context));
+ }
+
+ if(IgnoreWarnings.Expression != null)
+ {
+ targetCommand.AddParameter("IgnoreWarnings", IgnoreWarnings.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs
new file mode 100644
index 000000000..f59322093
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Compare-Object command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class CompareObject : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public CompareObject()
+ {
+ this.DisplayName = "Compare-Object";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Compare-Object"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the ReferenceObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ReferenceObject { get; set; }
+
+ ///
+ /// Provides access to the DifferenceObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DifferenceObject { get; set; }
+
+ ///
+ /// Provides access to the SyncWindow parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SyncWindow { get; set; }
+
+ ///
+ /// Provides access to the Property parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Property { get; set; }
+
+ ///
+ /// Provides access to the ExcludeDifferent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ExcludeDifferent { get; set; }
+
+ ///
+ /// Provides access to the IncludeEqual parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeEqual { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { get; set; }
+
+ ///
+ /// Provides access to the Culture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Culture { get; set; }
+
+ ///
+ /// Provides access to the CaseSensitive parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CaseSensitive { 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(ReferenceObject.Expression != null)
+ {
+ targetCommand.AddParameter("ReferenceObject", ReferenceObject.Get(context));
+ }
+
+ if(DifferenceObject.Expression != null)
+ {
+ targetCommand.AddParameter("DifferenceObject", DifferenceObject.Get(context));
+ }
+
+ if(SyncWindow.Expression != null)
+ {
+ targetCommand.AddParameter("SyncWindow", SyncWindow.Get(context));
+ }
+
+ if(Property.Expression != null)
+ {
+ targetCommand.AddParameter("Property", Property.Get(context));
+ }
+
+ if(ExcludeDifferent.Expression != null)
+ {
+ targetCommand.AddParameter("ExcludeDifferent", ExcludeDifferent.Get(context));
+ }
+
+ if(IncludeEqual.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeEqual", IncludeEqual.Get(context));
+ }
+
+ if(PassThru.Expression != null)
+ {
+ targetCommand.AddParameter("PassThru", PassThru.Get(context));
+ }
+
+ if(Culture.Expression != null)
+ {
+ targetCommand.AddParameter("Culture", Culture.Get(context));
+ }
+
+ if(CaseSensitive.Expression != null)
+ {
+ targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs
new file mode 100644
index 000000000..b44b461e2
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs
@@ -0,0 +1,106 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-Csv command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertFromCsv : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertFromCsv()
+ {
+ this.DisplayName = "ConvertFrom-Csv";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Csv"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Delimiter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Delimiter { get; set; }
+
+ ///
+ /// Provides access to the UseCulture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseCulture { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Header parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Header { 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(Delimiter.Expression != null)
+ {
+ targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
+ }
+
+ if(UseCulture.Expression != null)
+ {
+ targetCommand.AddParameter("UseCulture", UseCulture.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(Header.Expression != null)
+ {
+ targetCommand.AddParameter("Header", Header.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs
new file mode 100644
index 000000000..91accccd4
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-Json command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertFromJson : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertFromJson()
+ {
+ this.DisplayName = "ConvertFrom-Json";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Json"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { 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));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs
new file mode 100644
index 000000000..e9d2bdc31
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-String command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertFromString : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertFromString()
+ {
+ this.DisplayName = "ConvertFrom-String";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-String"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Delimiter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Delimiter { get; set; }
+
+ ///
+ /// Provides access to the PropertyNames parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PropertyNames { get; set; }
+
+ ///
+ /// Provides access to the TemplateFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TemplateFile { get; set; }
+
+ ///
+ /// Provides access to the TemplateContent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TemplateContent { get; set; }
+
+ ///
+ /// Provides access to the IncludeExtent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeExtent { get; set; }
+
+ ///
+ /// Provides access to the UpdateTemplate parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UpdateTemplate { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { 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(Delimiter.Expression != null)
+ {
+ targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
+ }
+
+ if(PropertyNames.Expression != null)
+ {
+ targetCommand.AddParameter("PropertyNames", PropertyNames.Get(context));
+ }
+
+ if(TemplateFile.Expression != null)
+ {
+ targetCommand.AddParameter("TemplateFile", TemplateFile.Get(context));
+ }
+
+ if(TemplateContent.Expression != null)
+ {
+ targetCommand.AddParameter("TemplateContent", TemplateContent.Get(context));
+ }
+
+ if(IncludeExtent.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeExtent", IncludeExtent.Get(context));
+ }
+
+ if(UpdateTemplate.Expression != null)
+ {
+ targetCommand.AddParameter("UpdateTemplate", UpdateTemplate.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs
new file mode 100644
index 000000000..1669f51b9
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertFrom-StringData command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertFromStringData : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertFromStringData()
+ {
+ this.DisplayName = "ConvertFrom-StringData";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-StringData"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the StringData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument StringData { 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(StringData.Expression != null)
+ {
+ targetCommand.AddParameter("StringData", StringData.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs
new file mode 100644
index 000000000..e1151e293
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs
@@ -0,0 +1,106 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Csv command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertToCsv : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertToCsv()
+ {
+ this.DisplayName = "ConvertTo-Csv";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Csv"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Delimiter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Delimiter { get; set; }
+
+ ///
+ /// Provides access to the UseCulture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseCulture { get; set; }
+
+ ///
+ /// Provides access to the NoTypeInformation parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoTypeInformation { 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(Delimiter.Expression != null)
+ {
+ targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
+ }
+
+ if(UseCulture.Expression != null)
+ {
+ targetCommand.AddParameter("UseCulture", UseCulture.Get(context));
+ }
+
+ if(NoTypeInformation.Expression != null)
+ {
+ targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs
new file mode 100644
index 000000000..776ce1778
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Html command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertToHtml : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertToHtml()
+ {
+ this.DisplayName = "ConvertTo-Html";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Html"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Property parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Property { get; set; }
+
+ ///
+ /// Provides access to the Body parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Body { get; set; }
+
+ ///
+ /// Provides access to the Head parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Head { get; set; }
+
+ ///
+ /// Provides access to the Title parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Title { get; set; }
+
+ ///
+ /// Provides access to the As parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument As { get; set; }
+
+ ///
+ /// Provides access to the CssUri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CssUri { get; set; }
+
+ ///
+ /// Provides access to the Fragment parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Fragment { get; set; }
+
+ ///
+ /// Provides access to the PostContent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PostContent { get; set; }
+
+ ///
+ /// Provides access to the PreContent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PreContent { 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(Property.Expression != null)
+ {
+ targetCommand.AddParameter("Property", Property.Get(context));
+ }
+
+ if(Body.Expression != null)
+ {
+ targetCommand.AddParameter("Body", Body.Get(context));
+ }
+
+ if(Head.Expression != null)
+ {
+ targetCommand.AddParameter("Head", Head.Get(context));
+ }
+
+ if(Title.Expression != null)
+ {
+ targetCommand.AddParameter("Title", Title.Get(context));
+ }
+
+ if(As.Expression != null)
+ {
+ targetCommand.AddParameter("As", As.Get(context));
+ }
+
+ if(CssUri.Expression != null)
+ {
+ targetCommand.AddParameter("CssUri", CssUri.Get(context));
+ }
+
+ if(Fragment.Expression != null)
+ {
+ targetCommand.AddParameter("Fragment", Fragment.Get(context));
+ }
+
+ if(PostContent.Expression != null)
+ {
+ targetCommand.AddParameter("PostContent", PostContent.Get(context));
+ }
+
+ if(PreContent.Expression != null)
+ {
+ targetCommand.AddParameter("PreContent", PreContent.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs
new file mode 100644
index 000000000..850a3216f
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Json command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertToJson : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertToJson()
+ {
+ this.DisplayName = "ConvertTo-Json";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Json"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Depth parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Depth { get; set; }
+
+ ///
+ /// Provides access to the Compress parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Compress { 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(Depth.Expression != null)
+ {
+ targetCommand.AddParameter("Depth", Depth.Get(context));
+ }
+
+ if(Compress.Expression != null)
+ {
+ targetCommand.AddParameter("Compress", Compress.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs
new file mode 100644
index 000000000..45c39286e
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs
@@ -0,0 +1,106 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\ConvertTo-Xml command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ConvertToXml : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ConvertToXml()
+ {
+ this.DisplayName = "ConvertTo-Xml";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Xml"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Depth parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Depth { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the NoTypeInformation parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoTypeInformation { get; set; }
+
+ ///
+ /// Provides access to the As parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument As { 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(Depth.Expression != null)
+ {
+ targetCommand.AddParameter("Depth", Depth.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(NoTypeInformation.Expression != null)
+ {
+ targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context));
+ }
+
+ if(As.Expression != null)
+ {
+ targetCommand.AddParameter("As", As.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs
new file mode 100644
index 000000000..56c6f572a
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Export-Clixml command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ExportClixml : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ExportClixml()
+ {
+ this.DisplayName = "Export-Clixml";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Clixml"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Depth parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Depth { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoClobber parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoClobber { get; set; }
+
+ ///
+ /// Provides access to the Encoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Encoding { 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(Depth.Expression != null)
+ {
+ targetCommand.AddParameter("Depth", Depth.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(NoClobber.Expression != null)
+ {
+ targetCommand.AddParameter("NoClobber", NoClobber.Get(context));
+ }
+
+ if(Encoding.Expression != null)
+ {
+ targetCommand.AddParameter("Encoding", Encoding.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs
new file mode 100644
index 000000000..062c0b5cf
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Export-Csv command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ExportCsv : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ExportCsv()
+ {
+ this.DisplayName = "Export-Csv";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Csv"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoClobber parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoClobber { get; set; }
+
+ ///
+ /// Provides access to the Encoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Encoding { get; set; }
+
+ ///
+ /// Provides access to the Append parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Append { get; set; }
+
+ ///
+ /// Provides access to the Delimiter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Delimiter { get; set; }
+
+ ///
+ /// Provides access to the UseCulture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseCulture { get; set; }
+
+ ///
+ /// Provides access to the NoTypeInformation parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoTypeInformation { 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(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(NoClobber.Expression != null)
+ {
+ targetCommand.AddParameter("NoClobber", NoClobber.Get(context));
+ }
+
+ if(Encoding.Expression != null)
+ {
+ targetCommand.AddParameter("Encoding", Encoding.Get(context));
+ }
+
+ if(Append.Expression != null)
+ {
+ targetCommand.AddParameter("Append", Append.Get(context));
+ }
+
+ if(Delimiter.Expression != null)
+ {
+ targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
+ }
+
+ if(UseCulture.Expression != null)
+ {
+ targetCommand.AddParameter("UseCulture", UseCulture.Get(context));
+ }
+
+ if(NoTypeInformation.Expression != null)
+ {
+ targetCommand.AddParameter("NoTypeInformation", NoTypeInformation.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs
new file mode 100644
index 000000000..db698e5a4
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs
@@ -0,0 +1,130 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Export-FormatData command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ExportFormatData : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ExportFormatData()
+ {
+ this.DisplayName = "Export-FormatData";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-FormatData"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoClobber parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoClobber { get; set; }
+
+ ///
+ /// Provides access to the IncludeScriptBlock parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeScriptBlock { 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(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(NoClobber.Expression != null)
+ {
+ targetCommand.AddParameter("NoClobber", NoClobber.Get(context));
+ }
+
+ if(IncludeScriptBlock.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeScriptBlock", IncludeScriptBlock.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs
new file mode 100644
index 000000000..ffe8ecd14
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs
@@ -0,0 +1,58 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Culture command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetCulture : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetCulture()
+ {
+ this.DisplayName = "Get-Culture";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Culture"; } }
+
+ // Arguments
+
+
+ // 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
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs
new file mode 100644
index 000000000..21633ff7e
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs
@@ -0,0 +1,190 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Date command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetDate : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetDate()
+ {
+ this.DisplayName = "Get-Date";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Date"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Date parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Date { get; set; }
+
+ ///
+ /// Provides access to the Year parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Year { get; set; }
+
+ ///
+ /// Provides access to the Month parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Month { get; set; }
+
+ ///
+ /// Provides access to the Day parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Day { get; set; }
+
+ ///
+ /// Provides access to the Hour parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Hour { get; set; }
+
+ ///
+ /// Provides access to the Minute parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Minute { get; set; }
+
+ ///
+ /// Provides access to the Second parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Second { get; set; }
+
+ ///
+ /// Provides access to the Millisecond parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Millisecond { get; set; }
+
+ ///
+ /// Provides access to the DisplayHint parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DisplayHint { get; set; }
+
+ ///
+ /// Provides access to the UFormat parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UFormat { get; set; }
+
+ ///
+ /// Provides access to the Format parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Format { 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(Date.Expression != null)
+ {
+ targetCommand.AddParameter("Date", Date.Get(context));
+ }
+
+ if(Year.Expression != null)
+ {
+ targetCommand.AddParameter("Year", Year.Get(context));
+ }
+
+ if(Month.Expression != null)
+ {
+ targetCommand.AddParameter("Month", Month.Get(context));
+ }
+
+ if(Day.Expression != null)
+ {
+ targetCommand.AddParameter("Day", Day.Get(context));
+ }
+
+ if(Hour.Expression != null)
+ {
+ targetCommand.AddParameter("Hour", Hour.Get(context));
+ }
+
+ if(Minute.Expression != null)
+ {
+ targetCommand.AddParameter("Minute", Minute.Get(context));
+ }
+
+ if(Second.Expression != null)
+ {
+ targetCommand.AddParameter("Second", Second.Get(context));
+ }
+
+ if(Millisecond.Expression != null)
+ {
+ targetCommand.AddParameter("Millisecond", Millisecond.Get(context));
+ }
+
+ if(DisplayHint.Expression != null)
+ {
+ targetCommand.AddParameter("DisplayHint", DisplayHint.Get(context));
+ }
+
+ if(UFormat.Expression != null)
+ {
+ targetCommand.AddParameter("UFormat", UFormat.Get(context));
+ }
+
+ if(Format.Expression != null)
+ {
+ targetCommand.AddParameter("Format", Format.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs
new file mode 100644
index 000000000..20357fd5a
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Event command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetEvent : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetEvent()
+ {
+ this.DisplayName = "Get-Event";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Event"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the EventIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument EventIdentifier { 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(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(EventIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("EventIdentifier", EventIdentifier.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs
new file mode 100644
index 000000000..f83cfb8d3
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-EventSubscriber command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetEventSubscriber : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetEventSubscriber()
+ {
+ this.DisplayName = "Get-EventSubscriber";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-EventSubscriber"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the SubscriptionId parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SubscriptionId { 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(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(SubscriptionId.Expression != null)
+ {
+ targetCommand.AddParameter("SubscriptionId", SubscriptionId.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs
new file mode 100644
index 000000000..582c0b856
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs
@@ -0,0 +1,58 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Host command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetHost : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetHost()
+ {
+ this.DisplayName = "Get-Host";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Host"; } }
+
+ // Arguments
+
+
+ // 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
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs
new file mode 100644
index 000000000..25dfab190
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs
@@ -0,0 +1,130 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Member command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetMember : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetMember()
+ {
+ this.DisplayName = "Get-Member";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Member"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the MemberType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MemberType { get; set; }
+
+ ///
+ /// Provides access to the View parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument View { get; set; }
+
+ ///
+ /// Provides access to the Static parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Static { 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(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(Name.Expression != null)
+ {
+ targetCommand.AddParameter("Name", Name.Get(context));
+ }
+
+ if(MemberType.Expression != null)
+ {
+ targetCommand.AddParameter("MemberType", MemberType.Get(context));
+ }
+
+ if(View.Expression != null)
+ {
+ targetCommand.AddParameter("View", View.Get(context));
+ }
+
+ if(Static.Expression != null)
+ {
+ targetCommand.AddParameter("Static", Static.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs
new file mode 100644
index 000000000..d861c1ae4
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Random command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetRandom : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetRandom()
+ {
+ this.DisplayName = "Get-Random";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Random"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SetSeed parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument> SetSeed { get; set; }
+
+ ///
+ /// Provides access to the Maximum parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Maximum { get; set; }
+
+ ///
+ /// Provides access to the Minimum parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Minimum { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Count parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Count { 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(SetSeed.Expression != null)
+ {
+ targetCommand.AddParameter("SetSeed", SetSeed.Get(context));
+ }
+
+ if(Maximum.Expression != null)
+ {
+ targetCommand.AddParameter("Maximum", Maximum.Get(context));
+ }
+
+ if(Minimum.Expression != null)
+ {
+ targetCommand.AddParameter("Minimum", Minimum.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(Count.Expression != null)
+ {
+ targetCommand.AddParameter("Count", Count.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs
new file mode 100644
index 000000000..879ae3e11
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-TraceSource command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetTraceSource : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetTraceSource()
+ {
+ this.DisplayName = "Get-TraceSource";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TraceSource"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { 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));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs
new file mode 100644
index 000000000..e1322f6b2
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-TypeData command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetTypeData : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetTypeData()
+ {
+ this.DisplayName = "Get-TypeData";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TypeData"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the TypeName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TypeName { 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(TypeName.Expression != null)
+ {
+ targetCommand.AddParameter("TypeName", TypeName.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs
new file mode 100644
index 000000000..5ee4e61a8
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs
@@ -0,0 +1,58 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-UICulture command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetUICulture : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetUICulture()
+ {
+ this.DisplayName = "Get-UICulture";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-UICulture"; } }
+
+ // Arguments
+
+
+ // 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
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs
new file mode 100644
index 000000000..5f889161c
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Get-Unique command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GetUnique : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GetUnique()
+ {
+ this.DisplayName = "Get-Unique";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Unique"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the AsString parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AsString { get; set; }
+
+ ///
+ /// Provides access to the OnType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OnType { 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(AsString.Expression != null)
+ {
+ targetCommand.AddParameter("AsString", AsString.Get(context));
+ }
+
+ if(OnType.Expression != null)
+ {
+ targetCommand.AddParameter("OnType", OnType.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs
new file mode 100644
index 000000000..28902c86e
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Group-Object command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class GroupObject : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public GroupObject()
+ {
+ this.DisplayName = "Group-Object";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Group-Object"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the NoElement parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoElement { get; set; }
+
+ ///
+ /// Provides access to the AsHashTable parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AsHashTable { get; set; }
+
+ ///
+ /// Provides access to the AsString parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument AsString { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Property parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Property { get; set; }
+
+ ///
+ /// Provides access to the Culture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Culture { get; set; }
+
+ ///
+ /// Provides access to the CaseSensitive parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CaseSensitive { 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(NoElement.Expression != null)
+ {
+ targetCommand.AddParameter("NoElement", NoElement.Get(context));
+ }
+
+ if(AsHashTable.Expression != null)
+ {
+ targetCommand.AddParameter("AsHashTable", AsHashTable.Get(context));
+ }
+
+ if(AsString.Expression != null)
+ {
+ targetCommand.AddParameter("AsString", AsString.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+ if(Property.Expression != null)
+ {
+ targetCommand.AddParameter("Property", Property.Get(context));
+ }
+
+ if(Culture.Expression != null)
+ {
+ targetCommand.AddParameter("Culture", Culture.Get(context));
+ }
+
+ if(CaseSensitive.Expression != null)
+ {
+ targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs
new file mode 100644
index 000000000..f22033f36
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Import-Clixml command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ImportClixml : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ImportClixml()
+ {
+ this.DisplayName = "Import-Clixml";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Clixml"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the IncludeTotalCount parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IncludeTotalCount { get; set; }
+
+ ///
+ /// Provides access to the Skip parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Skip { get; set; }
+
+ ///
+ /// Provides access to the First parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument First { 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(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(IncludeTotalCount.Expression != null)
+ {
+ targetCommand.AddParameter("IncludeTotalCount", IncludeTotalCount.Get(context));
+ }
+
+ if(Skip.Expression != null)
+ {
+ targetCommand.AddParameter("Skip", Skip.Get(context));
+ }
+
+ if(First.Expression != null)
+ {
+ targetCommand.AddParameter("First", First.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs
new file mode 100644
index 000000000..5ac2037f2
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs
@@ -0,0 +1,130 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Import-Csv command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class ImportCsv : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public ImportCsv()
+ {
+ this.DisplayName = "Import-Csv";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Csv"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Delimiter parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Delimiter { get; set; }
+
+ ///
+ /// Provides access to the Path parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Path { get; set; }
+
+ ///
+ /// Provides access to the LiteralPath parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument LiteralPath { get; set; }
+
+ ///
+ /// Provides access to the UseCulture parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseCulture { get; set; }
+
+ ///
+ /// Provides access to the Header parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Header { get; set; }
+
+ ///
+ /// Provides access to the Encoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Encoding { 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(Delimiter.Expression != null)
+ {
+ targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
+ }
+
+ if(Path.Expression != null)
+ {
+ targetCommand.AddParameter("Path", Path.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(UseCulture.Expression != null)
+ {
+ targetCommand.AddParameter("UseCulture", UseCulture.Get(context));
+ }
+
+ if(Header.Expression != null)
+ {
+ targetCommand.AddParameter("Header", Header.Get(context));
+ }
+
+ if(Encoding.Expression != null)
+ {
+ targetCommand.AddParameter("Encoding", Encoding.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs
new file mode 100644
index 000000000..fc7c7e5fb
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-Expression command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class InvokeExpression : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public InvokeExpression()
+ {
+ this.DisplayName = "Invoke-Expression";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-Expression"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Command parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Command { 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(Command.Expression != null)
+ {
+ targetCommand.AddParameter("Command", Command.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs
new file mode 100644
index 000000000..f0ccdfe87
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-RestMethod command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class InvokeRestMethod : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public InvokeRestMethod()
+ {
+ this.DisplayName = "Invoke-RestMethod";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-RestMethod"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Method parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Method { get; set; }
+
+ ///
+ /// Provides access to the UseBasicParsing parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseBasicParsing { get; set; }
+
+ ///
+ /// Provides access to the Uri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Uri { get; set; }
+
+ ///
+ /// Provides access to the WebSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument WebSession { get; set; }
+
+ ///
+ /// Provides access to the SessionVariable parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionVariable { 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 CertificateThumbprint parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CertificateThumbprint { get; set; }
+
+ ///
+ /// Provides access to the Certificate parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Certificate { get; set; }
+
+ ///
+ /// Provides access to the UserAgent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UserAgent { get; set; }
+
+ ///
+ /// Provides access to the DisableKeepAlive parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DisableKeepAlive { get; set; }
+
+ ///
+ /// Provides access to the TimeoutSec parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TimeoutSec { get; set; }
+
+ ///
+ /// Provides access to the Headers parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Headers { get; set; }
+
+ ///
+ /// Provides access to the MaximumRedirection parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MaximumRedirection { get; set; }
+
+ ///
+ /// Provides access to the Proxy parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Proxy { get; set; }
+
+ ///
+ /// Provides access to the ProxyCredential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProxyCredential { get; set; }
+
+ ///
+ /// Provides access to the ProxyUseDefaultCredentials parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProxyUseDefaultCredentials { get; set; }
+
+ ///
+ /// Provides access to the Body parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Body { get; set; }
+
+ ///
+ /// Provides access to the ContentType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ContentType { get; set; }
+
+ ///
+ /// Provides access to the TransferEncoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TransferEncoding { get; set; }
+
+ ///
+ /// Provides access to the InFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InFile { get; set; }
+
+ ///
+ /// Provides access to the OutFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OutFile { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { 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(Method.Expression != null)
+ {
+ targetCommand.AddParameter("Method", Method.Get(context));
+ }
+
+ if(UseBasicParsing.Expression != null)
+ {
+ targetCommand.AddParameter("UseBasicParsing", UseBasicParsing.Get(context));
+ }
+
+ if(Uri.Expression != null)
+ {
+ targetCommand.AddParameter("Uri", Uri.Get(context));
+ }
+
+ if(WebSession.Expression != null)
+ {
+ targetCommand.AddParameter("WebSession", WebSession.Get(context));
+ }
+
+ if(SessionVariable.Expression != null)
+ {
+ targetCommand.AddParameter("SessionVariable", SessionVariable.Get(context));
+ }
+
+ if(Credential.Expression != null)
+ {
+ targetCommand.AddParameter("Credential", Credential.Get(context));
+ }
+
+ if(UseDefaultCredentials.Expression != null)
+ {
+ targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context));
+ }
+
+ if(CertificateThumbprint.Expression != null)
+ {
+ targetCommand.AddParameter("CertificateThumbprint", CertificateThumbprint.Get(context));
+ }
+
+ if(Certificate.Expression != null)
+ {
+ targetCommand.AddParameter("Certificate", Certificate.Get(context));
+ }
+
+ if(UserAgent.Expression != null)
+ {
+ targetCommand.AddParameter("UserAgent", UserAgent.Get(context));
+ }
+
+ if(DisableKeepAlive.Expression != null)
+ {
+ targetCommand.AddParameter("DisableKeepAlive", DisableKeepAlive.Get(context));
+ }
+
+ if(TimeoutSec.Expression != null)
+ {
+ targetCommand.AddParameter("TimeoutSec", TimeoutSec.Get(context));
+ }
+
+ if(Headers.Expression != null)
+ {
+ targetCommand.AddParameter("Headers", Headers.Get(context));
+ }
+
+ if(MaximumRedirection.Expression != null)
+ {
+ targetCommand.AddParameter("MaximumRedirection", MaximumRedirection.Get(context));
+ }
+
+ if(Proxy.Expression != null)
+ {
+ targetCommand.AddParameter("Proxy", Proxy.Get(context));
+ }
+
+ if(ProxyCredential.Expression != null)
+ {
+ targetCommand.AddParameter("ProxyCredential", ProxyCredential.Get(context));
+ }
+
+ if(ProxyUseDefaultCredentials.Expression != null)
+ {
+ targetCommand.AddParameter("ProxyUseDefaultCredentials", ProxyUseDefaultCredentials.Get(context));
+ }
+
+ if(Body.Expression != null)
+ {
+ targetCommand.AddParameter("Body", Body.Get(context));
+ }
+
+ if(ContentType.Expression != null)
+ {
+ targetCommand.AddParameter("ContentType", ContentType.Get(context));
+ }
+
+ if(TransferEncoding.Expression != null)
+ {
+ targetCommand.AddParameter("TransferEncoding", TransferEncoding.Get(context));
+ }
+
+ if(InFile.Expression != null)
+ {
+ targetCommand.AddParameter("InFile", InFile.Get(context));
+ }
+
+ if(OutFile.Expression != null)
+ {
+ targetCommand.AddParameter("OutFile", OutFile.Get(context));
+ }
+
+ if(PassThru.Expression != null)
+ {
+ targetCommand.AddParameter("PassThru", PassThru.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs
new file mode 100644
index 000000000..16b22f673
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Invoke-WebRequest command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class InvokeWebRequest : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public InvokeWebRequest()
+ {
+ this.DisplayName = "Invoke-WebRequest";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-WebRequest"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the UseBasicParsing parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UseBasicParsing { get; set; }
+
+ ///
+ /// Provides access to the Uri parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Uri { get; set; }
+
+ ///
+ /// Provides access to the WebSession parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument WebSession { get; set; }
+
+ ///
+ /// Provides access to the SessionVariable parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SessionVariable { 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 CertificateThumbprint parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument CertificateThumbprint { get; set; }
+
+ ///
+ /// Provides access to the Certificate parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Certificate { get; set; }
+
+ ///
+ /// Provides access to the UserAgent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument UserAgent { get; set; }
+
+ ///
+ /// Provides access to the DisableKeepAlive parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument DisableKeepAlive { get; set; }
+
+ ///
+ /// Provides access to the TimeoutSec parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TimeoutSec { get; set; }
+
+ ///
+ /// Provides access to the Headers parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Headers { get; set; }
+
+ ///
+ /// Provides access to the MaximumRedirection parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MaximumRedirection { get; set; }
+
+ ///
+ /// Provides access to the Method parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Method { get; set; }
+
+ ///
+ /// Provides access to the Proxy parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Proxy { get; set; }
+
+ ///
+ /// Provides access to the ProxyCredential parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProxyCredential { get; set; }
+
+ ///
+ /// Provides access to the ProxyUseDefaultCredentials parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ProxyUseDefaultCredentials { get; set; }
+
+ ///
+ /// Provides access to the Body parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Body { get; set; }
+
+ ///
+ /// Provides access to the ContentType parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ContentType { get; set; }
+
+ ///
+ /// Provides access to the TransferEncoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument TransferEncoding { get; set; }
+
+ ///
+ /// Provides access to the InFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InFile { get; set; }
+
+ ///
+ /// Provides access to the OutFile parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument OutFile { get; set; }
+
+ ///
+ /// Provides access to the PassThru parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument PassThru { 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(UseBasicParsing.Expression != null)
+ {
+ targetCommand.AddParameter("UseBasicParsing", UseBasicParsing.Get(context));
+ }
+
+ if(Uri.Expression != null)
+ {
+ targetCommand.AddParameter("Uri", Uri.Get(context));
+ }
+
+ if(WebSession.Expression != null)
+ {
+ targetCommand.AddParameter("WebSession", WebSession.Get(context));
+ }
+
+ if(SessionVariable.Expression != null)
+ {
+ targetCommand.AddParameter("SessionVariable", SessionVariable.Get(context));
+ }
+
+ if(Credential.Expression != null)
+ {
+ targetCommand.AddParameter("Credential", Credential.Get(context));
+ }
+
+ if(UseDefaultCredentials.Expression != null)
+ {
+ targetCommand.AddParameter("UseDefaultCredentials", UseDefaultCredentials.Get(context));
+ }
+
+ if(CertificateThumbprint.Expression != null)
+ {
+ targetCommand.AddParameter("CertificateThumbprint", CertificateThumbprint.Get(context));
+ }
+
+ if(Certificate.Expression != null)
+ {
+ targetCommand.AddParameter("Certificate", Certificate.Get(context));
+ }
+
+ if(UserAgent.Expression != null)
+ {
+ targetCommand.AddParameter("UserAgent", UserAgent.Get(context));
+ }
+
+ if(DisableKeepAlive.Expression != null)
+ {
+ targetCommand.AddParameter("DisableKeepAlive", DisableKeepAlive.Get(context));
+ }
+
+ if(TimeoutSec.Expression != null)
+ {
+ targetCommand.AddParameter("TimeoutSec", TimeoutSec.Get(context));
+ }
+
+ if(Headers.Expression != null)
+ {
+ targetCommand.AddParameter("Headers", Headers.Get(context));
+ }
+
+ if(MaximumRedirection.Expression != null)
+ {
+ targetCommand.AddParameter("MaximumRedirection", MaximumRedirection.Get(context));
+ }
+
+ if(Method.Expression != null)
+ {
+ targetCommand.AddParameter("Method", Method.Get(context));
+ }
+
+ if(Proxy.Expression != null)
+ {
+ targetCommand.AddParameter("Proxy", Proxy.Get(context));
+ }
+
+ if(ProxyCredential.Expression != null)
+ {
+ targetCommand.AddParameter("ProxyCredential", ProxyCredential.Get(context));
+ }
+
+ if(ProxyUseDefaultCredentials.Expression != null)
+ {
+ targetCommand.AddParameter("ProxyUseDefaultCredentials", ProxyUseDefaultCredentials.Get(context));
+ }
+
+ if(Body.Expression != null)
+ {
+ targetCommand.AddParameter("Body", Body.Get(context));
+ }
+
+ if(ContentType.Expression != null)
+ {
+ targetCommand.AddParameter("ContentType", ContentType.Get(context));
+ }
+
+ if(TransferEncoding.Expression != null)
+ {
+ targetCommand.AddParameter("TransferEncoding", TransferEncoding.Get(context));
+ }
+
+ if(InFile.Expression != null)
+ {
+ targetCommand.AddParameter("InFile", InFile.Get(context));
+ }
+
+ if(OutFile.Expression != null)
+ {
+ targetCommand.AddParameter("OutFile", OutFile.Get(context));
+ }
+
+ if(PassThru.Expression != null)
+ {
+ targetCommand.AddParameter("PassThru", PassThru.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs
new file mode 100644
index 000000000..d4795ca44
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Measure-Command command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class MeasureCommand : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public MeasureCommand()
+ {
+ this.DisplayName = "Measure-Command";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Command"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Expression parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Expression { 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(Expression.Expression != null)
+ {
+ targetCommand.AddParameter("Expression", Expression.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs
new file mode 100644
index 000000000..7d8da3dd4
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Measure-Object command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class MeasureObject : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public MeasureObject()
+ {
+ this.DisplayName = "Measure-Object";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Object"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Property parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Property { get; set; }
+
+ ///
+ /// Provides access to the Sum parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Sum { get; set; }
+
+ ///
+ /// Provides access to the Average parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Average { get; set; }
+
+ ///
+ /// Provides access to the Maximum parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Maximum { get; set; }
+
+ ///
+ /// Provides access to the Minimum parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Minimum { get; set; }
+
+ ///
+ /// Provides access to the Line parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Line { get; set; }
+
+ ///
+ /// Provides access to the Word parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Word { get; set; }
+
+ ///
+ /// Provides access to the Character parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Character { get; set; }
+
+ ///
+ /// Provides access to the IgnoreWhiteSpace parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument IgnoreWhiteSpace { 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(Property.Expression != null)
+ {
+ targetCommand.AddParameter("Property", Property.Get(context));
+ }
+
+ if(Sum.Expression != null)
+ {
+ targetCommand.AddParameter("Sum", Sum.Get(context));
+ }
+
+ if(Average.Expression != null)
+ {
+ targetCommand.AddParameter("Average", Average.Get(context));
+ }
+
+ if(Maximum.Expression != null)
+ {
+ targetCommand.AddParameter("Maximum", Maximum.Get(context));
+ }
+
+ if(Minimum.Expression != null)
+ {
+ targetCommand.AddParameter("Minimum", Minimum.Get(context));
+ }
+
+ if(Line.Expression != null)
+ {
+ targetCommand.AddParameter("Line", Line.Get(context));
+ }
+
+ if(Word.Expression != null)
+ {
+ targetCommand.AddParameter("Word", Word.Get(context));
+ }
+
+ if(Character.Expression != null)
+ {
+ targetCommand.AddParameter("Character", Character.Get(context));
+ }
+
+ if(IgnoreWhiteSpace.Expression != null)
+ {
+ targetCommand.AddParameter("IgnoreWhiteSpace", IgnoreWhiteSpace.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs
new file mode 100644
index 000000000..f70ad8ba5
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs
@@ -0,0 +1,106 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\New-Event command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class NewEvent : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public NewEvent()
+ {
+ this.DisplayName = "New-Event";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-Event"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the Sender parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Sender { get; set; }
+
+ ///
+ /// Provides access to the EventArguments parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument EventArguments { get; set; }
+
+ ///
+ /// Provides access to the MessageData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MessageData { 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(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(Sender.Expression != null)
+ {
+ targetCommand.AddParameter("Sender", Sender.Get(context));
+ }
+
+ if(EventArguments.Expression != null)
+ {
+ targetCommand.AddParameter("EventArguments", EventArguments.Get(context));
+ }
+
+ if(MessageData.Expression != null)
+ {
+ targetCommand.AddParameter("MessageData", MessageData.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs
new file mode 100644
index 000000000..d6a87d8c9
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs
@@ -0,0 +1,130 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\New-TimeSpan command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class NewTimeSpan : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public NewTimeSpan()
+ {
+ this.DisplayName = "New-TimeSpan";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-TimeSpan"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Start parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Start { get; set; }
+
+ ///
+ /// Provides access to the End parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument End { get; set; }
+
+ ///
+ /// Provides access to the Days parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Days { get; set; }
+
+ ///
+ /// Provides access to the Hours parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Hours { get; set; }
+
+ ///
+ /// Provides access to the Minutes parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Minutes { get; set; }
+
+ ///
+ /// Provides access to the Seconds parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Seconds { 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(Start.Expression != null)
+ {
+ targetCommand.AddParameter("Start", Start.Get(context));
+ }
+
+ if(End.Expression != null)
+ {
+ targetCommand.AddParameter("End", End.Get(context));
+ }
+
+ if(Days.Expression != null)
+ {
+ targetCommand.AddParameter("Days", Days.Get(context));
+ }
+
+ if(Hours.Expression != null)
+ {
+ targetCommand.AddParameter("Hours", Hours.Get(context));
+ }
+
+ if(Minutes.Expression != null)
+ {
+ targetCommand.AddParameter("Minutes", Minutes.Get(context));
+ }
+
+ if(Seconds.Expression != null)
+ {
+ targetCommand.AddParameter("Seconds", Seconds.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs
new file mode 100644
index 000000000..162849712
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Out-File command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class OutFile : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public OutFile()
+ {
+ this.DisplayName = "Out-File";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-File"; } }
+
+ // Arguments
+
+ ///
+ /// 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 Encoding parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Encoding { get; set; }
+
+ ///
+ /// Provides access to the Append parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Append { get; set; }
+
+ ///
+ /// Provides access to the Force parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Force { get; set; }
+
+ ///
+ /// Provides access to the NoClobber parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoClobber { get; set; }
+
+ ///
+ /// Provides access to the Width parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Width { get; set; }
+
+ ///
+ /// Provides access to the NoNewline parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument NoNewline { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { 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(FilePath.Expression != null)
+ {
+ targetCommand.AddParameter("FilePath", FilePath.Get(context));
+ }
+
+ if(LiteralPath.Expression != null)
+ {
+ targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context));
+ }
+
+ if(Encoding.Expression != null)
+ {
+ targetCommand.AddParameter("Encoding", Encoding.Get(context));
+ }
+
+ if(Append.Expression != null)
+ {
+ targetCommand.AddParameter("Append", Append.Get(context));
+ }
+
+ if(Force.Expression != null)
+ {
+ targetCommand.AddParameter("Force", Force.Get(context));
+ }
+
+ if(NoClobber.Expression != null)
+ {
+ targetCommand.AddParameter("NoClobber", NoClobber.Get(context));
+ }
+
+ if(Width.Expression != null)
+ {
+ targetCommand.AddParameter("Width", Width.Get(context));
+ }
+
+ if(NoNewline.Expression != null)
+ {
+ targetCommand.AddParameter("NoNewline", NoNewline.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs
new file mode 100644
index 000000000..deed414fe
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Out-Printer command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class OutPrinter : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public OutPrinter()
+ {
+ this.DisplayName = "Out-Printer";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-Printer"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Name parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Name { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { 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(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs
new file mode 100644
index 000000000..334053deb
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Out-String command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class OutString : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public OutString()
+ {
+ this.DisplayName = "Out-String";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-String"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the Stream parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Stream { get; set; }
+
+ ///
+ /// Provides access to the Width parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Width { get; set; }
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { 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(Stream.Expression != null)
+ {
+ targetCommand.AddParameter("Stream", Stream.Get(context));
+ }
+
+ if(Width.Expression != null)
+ {
+ targetCommand.AddParameter("Width", Width.Get(context));
+ }
+
+ if(InputObject.Expression != null)
+ {
+ targetCommand.AddParameter("InputObject", InputObject.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs
new file mode 100644
index 000000000..8f8cf6000
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs
@@ -0,0 +1,130 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Register-EngineEvent command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RegisterEngineEvent : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RegisterEngineEvent()
+ {
+ this.DisplayName = "Register-EngineEvent";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-EngineEvent"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the Action parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Action { get; set; }
+
+ ///
+ /// Provides access to the MessageData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MessageData { get; set; }
+
+ ///
+ /// Provides access to the SupportEvent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SupportEvent { get; set; }
+
+ ///
+ /// Provides access to the Forward parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Forward { get; set; }
+
+ ///
+ /// Provides access to the MaxTriggerCount parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MaxTriggerCount { 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(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(Action.Expression != null)
+ {
+ targetCommand.AddParameter("Action", Action.Get(context));
+ }
+
+ if(MessageData.Expression != null)
+ {
+ targetCommand.AddParameter("MessageData", MessageData.Get(context));
+ }
+
+ if(SupportEvent.Expression != null)
+ {
+ targetCommand.AddParameter("SupportEvent", SupportEvent.Get(context));
+ }
+
+ if(Forward.Expression != null)
+ {
+ targetCommand.AddParameter("Forward", Forward.Get(context));
+ }
+
+ if(MaxTriggerCount.Expression != null)
+ {
+ targetCommand.AddParameter("MaxTriggerCount", MaxTriggerCount.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs
new file mode 100644
index 000000000..069b9e686
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Register-ObjectEvent command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RegisterObjectEvent : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RegisterObjectEvent()
+ {
+ this.DisplayName = "Register-ObjectEvent";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-ObjectEvent"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the EventName parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument EventName { get; set; }
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the Action parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Action { get; set; }
+
+ ///
+ /// Provides access to the MessageData parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MessageData { get; set; }
+
+ ///
+ /// Provides access to the SupportEvent parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SupportEvent { get; set; }
+
+ ///
+ /// Provides access to the Forward parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Forward { get; set; }
+
+ ///
+ /// Provides access to the MaxTriggerCount parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument MaxTriggerCount { 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(EventName.Expression != null)
+ {
+ targetCommand.AddParameter("EventName", EventName.Get(context));
+ }
+
+ if(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(Action.Expression != null)
+ {
+ targetCommand.AddParameter("Action", Action.Get(context));
+ }
+
+ if(MessageData.Expression != null)
+ {
+ targetCommand.AddParameter("MessageData", MessageData.Get(context));
+ }
+
+ if(SupportEvent.Expression != null)
+ {
+ targetCommand.AddParameter("SupportEvent", SupportEvent.Get(context));
+ }
+
+ if(Forward.Expression != null)
+ {
+ targetCommand.AddParameter("Forward", Forward.Get(context));
+ }
+
+ if(MaxTriggerCount.Expression != null)
+ {
+ targetCommand.AddParameter("MaxTriggerCount", MaxTriggerCount.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs
new file mode 100644
index 000000000..c181084fc
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Remove-Event command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class RemoveEvent : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public RemoveEvent()
+ {
+ this.DisplayName = "Remove-Event";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Remove-Event"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the SourceIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SourceIdentifier { get; set; }
+
+ ///
+ /// Provides access to the EventIdentifier parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument EventIdentifier { 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(SourceIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
+ }
+
+ if(EventIdentifier.Expression != null)
+ {
+ targetCommand.AddParameter("EventIdentifier", EventIdentifier.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs
new file mode 100644
index 000000000..86fedee7e
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs
@@ -0,0 +1,190 @@
+//
+// 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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Select-Object command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SelectObject : PSActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SelectObject()
+ {
+ this.DisplayName = "Select-Object";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Object"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///
+ /// Provides access to the Property parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Property { get; set; }
+
+ ///
+ /// Provides access to the ExcludeProperty parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ExcludeProperty { get; set; }
+
+ ///
+ /// Provides access to the ExpandProperty parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument ExpandProperty { get; set; }
+
+ ///
+ /// Provides access to the Unique parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Unique { get; set; }
+
+ ///
+ /// Provides access to the Last parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Last { get; set; }
+
+ ///
+ /// Provides access to the First parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument First { get; set; }
+
+ ///
+ /// Provides access to the Skip parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Skip { get; set; }
+
+ ///
+ /// Provides access to the SkipLast parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument SkipLast { get; set; }
+
+ ///
+ /// Provides access to the Wait parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Wait { get; set; }
+
+ ///
+ /// Provides access to the Index parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument Index { 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(Property.Expression != null)
+ {
+ targetCommand.AddParameter("Property", Property.Get(context));
+ }
+
+ if(ExcludeProperty.Expression != null)
+ {
+ targetCommand.AddParameter("ExcludeProperty", ExcludeProperty.Get(context));
+ }
+
+ if(ExpandProperty.Expression != null)
+ {
+ targetCommand.AddParameter("ExpandProperty", ExpandProperty.Get(context));
+ }
+
+ if(Unique.Expression != null)
+ {
+ targetCommand.AddParameter("Unique", Unique.Get(context));
+ }
+
+ if(Last.Expression != null)
+ {
+ targetCommand.AddParameter("Last", Last.Get(context));
+ }
+
+ if(First.Expression != null)
+ {
+ targetCommand.AddParameter("First", First.Get(context));
+ }
+
+ if(Skip.Expression != null)
+ {
+ targetCommand.AddParameter("Skip", Skip.Get(context));
+ }
+
+ if(SkipLast.Expression != null)
+ {
+ targetCommand.AddParameter("SkipLast", SkipLast.Get(context));
+ }
+
+ if(Wait.Expression != null)
+ {
+ targetCommand.AddParameter("Wait", Wait.Get(context));
+ }
+
+ if(Index.Expression != null)
+ {
+ targetCommand.AddParameter("Index", Index.Get(context));
+ }
+
+
+ return new ActivityImplementationContext() { PowerShellInstance = invoker };
+ }
+ }
+}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs
new file mode 100644
index 000000000..639d32806
--- /dev/null
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.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.Utility.Activities
+{
+ ///
+ /// Activity to invoke the Microsoft.PowerShell.Utility\Select-String command in a Workflow.
+ ///
+ [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")]
+ public sealed class SelectString : PSRemotingActivity
+ {
+ ///
+ /// Gets the display name of the command invoked by this activity.
+ ///
+ public SelectString()
+ {
+ this.DisplayName = "Select-String";
+ }
+
+ ///
+ /// Gets the fully qualified name of the command invoked by this activity.
+ ///
+ public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-String"; } }
+
+ // Arguments
+
+ ///
+ /// Provides access to the InputObject parameter.
+ ///
+ [ParameterSpecificCategory]
+ [DefaultValue(null)]
+ public InArgument InputObject { get; set; }
+
+ ///