From 09bb590522ec6beadcdb9d720e3c8d100b624c5f Mon Sep 17 00:00:00 2001 From: Dongbo Wang Date: Tue, 15 Aug 2017 16:20:44 -0700 Subject: [PATCH] Remove src\Microsoft.PowerShell.Utility.Activities --- .../AssemblyInfo.cs | 19 - .../Generated/AddMemberActivity.cs | 190 ---------- .../Generated/AddTypeActivity.cs | 250 ------------- .../Generated/CompareObjectActivity.cs | 166 --------- .../Generated/ConvertFromCsvActivity.cs | 106 ------ .../Generated/ConvertFromJsonActivity.cs | 70 ---- .../Generated/ConvertFromStringActivity.cs | 142 -------- .../ConvertFromStringDataActivity.cs | 70 ---- .../Generated/ConvertToCsvActivity.cs | 106 ------ .../Generated/ConvertToHtmlActivity.cs | 178 ---------- .../Generated/ConvertToJsonActivity.cs | 94 ----- .../Generated/ConvertToXmlActivity.cs | 106 ------ .../Generated/ExportClixmlActivity.cs | 142 -------- .../Generated/ExportCsvActivity.cs | 178 ---------- .../Generated/ExportFormatDataActivity.cs | 130 ------- .../Generated/GetCultureActivity.cs | 58 --- .../Generated/GetDateActivity.cs | 190 ---------- .../Generated/GetEventActivity.cs | 82 ----- .../Generated/GetEventSubscriberActivity.cs | 94 ----- .../Generated/GetHostActivity.cs | 58 --- .../Generated/GetMemberActivity.cs | 130 ------- .../Generated/GetRandomActivity.cs | 118 ------- .../Generated/GetTraceSourceActivity.cs | 70 ---- .../Generated/GetTypeDataActivity.cs | 70 ---- .../Generated/GetUICultureActivity.cs | 58 --- .../Generated/GetUniqueActivity.cs | 94 ----- .../Generated/GroupObjectActivity.cs | 142 -------- .../Generated/ImportClixmlActivity.cs | 118 ------- .../Generated/ImportCsvActivity.cs | 130 ------- .../Generated/InvokeExpressionActivity.cs | 70 ---- .../Generated/InvokeRestMethodActivity.cs | 334 ------------------ .../Generated/InvokeWebRequestActivity.cs | 334 ------------------ .../Generated/MeasureCommandActivity.cs | 82 ----- .../Generated/MeasureObjectActivity.cs | 178 ---------- .../Generated/NewEventActivity.cs | 106 ------ .../Generated/NewTimeSpanActivity.cs | 130 ------- .../Generated/OutFileActivity.cs | 166 --------- .../Generated/OutPrinterActivity.cs | 82 ----- .../Generated/OutStringActivity.cs | 94 ----- .../Generated/RegisterEngineEventActivity.cs | 130 ------- .../Generated/RegisterObjectEventActivity.cs | 154 -------- .../Generated/RemoveEventActivity.cs | 82 ----- .../Generated/SelectObjectActivity.cs | 190 ---------- .../Generated/SelectStringActivity.cs | 226 ------------ .../Generated/SelectXmlActivity.cs | 130 ------- .../Generated/SendMailMessageActivity.cs | 238 ------------- .../Generated/SetDateActivity.cs | 94 ----- .../Generated/SetTraceSourceActivity.cs | 178 ---------- .../Generated/SortObjectActivity.cs | 130 ------- .../Generated/StartSleepActivity.cs | 82 ----- .../Generated/TeeObjectActivity.cs | 118 ------- .../Generated/UnblockFileActivity.cs | 82 ----- .../Generated/UnregisterEventActivity.cs | 94 ----- .../Generated/UpdateListActivity.cs | 118 ------- .../Generated/WaitEventActivity.cs | 82 ----- .../Generated/WriteDebugActivity.cs | 70 ---- .../Generated/WriteErrorActivity.cs | 190 ---------- .../Generated/WriteInformationActivity.cs | 82 ----- .../Generated/WriteOutputActivity.cs | 82 ----- .../Generated/WriteProgressActivity.cs | 166 --------- .../Generated/WriteVerboseActivity.cs | 70 ---- .../Generated/WriteWarningActivity.cs | 70 ---- .../ImportLocalizedDataActivity.cs | 105 ------ .../GeneratedActivitiesResources.resx | 124 ------- 64 files changed, 8022 deletions(-) delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs delete mode 100644 src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx diff --git a/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs b/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs deleted file mode 100644 index 4156ed72c41..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/AssemblyInfo.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System.Reflection; -using System.Security.Permissions; -using System.Runtime.CompilerServices; -using System.Runtime.ConstrainedExecution; -using System.Diagnostics.CodeAnalysis; - - -[assembly: AssemblyVersion("3.0.0.0")] -[assembly: AssemblyFileVersionAttribute("3.0.0.0")] -[assembly: System.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 deleted file mode 100644 index 71b3b4f7d23..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index f85c85ec74f..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs +++ /dev/null @@ -1,250 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 57a8810ccce..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 8faf02f5053..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 30a1717b524..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 6336af13295..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 7dbf8ef419b..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index bc4a7f07b2b..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 022b6438965..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 61b0abd758a..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index fe42c1d91b3..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index c23f83d3575..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index faca15b235a..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 89be91850e1..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index f840e7dc61f..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 9ce505e3324..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 8e51627ab79..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 91024fe8626..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index c4ae871278e..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 2950db89b41..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 324bd484a40..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 41c8ed24aec..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index b38be6c724e..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 1d9a9f19c4a..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs +++ /dev/null @@ -1,58 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index a79c6e20a62..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 49b83ace448..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs +++ /dev/null @@ -1,142 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index a63f350e159..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index fd770477f2a..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 8b59c788acc..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 11c6944d38e..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs +++ /dev/null @@ -1,334 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 773d1ee7daf..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs +++ /dev/null @@ -1,334 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index f441e7b4293..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 2f48de25e8c..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 9c9fdcfe9b5..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs +++ /dev/null @@ -1,106 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 7e26ab3ce84..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index aa875ee2211..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 82bb408c431..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 42797e8fd9f..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 7bdeda89a1e..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index e544f6f1e07..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs +++ /dev/null @@ -1,154 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index e864d7ad0d3..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 47c016c3674..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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 System.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 deleted file mode 100644 index 5ce4bcd3894..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs +++ /dev/null @@ -1,226 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.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; } - - /// - /// Provides access to the Pattern parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Pattern { 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 SimpleMatch parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SimpleMatch { get; set; } - - /// - /// Provides access to the CaseSensitive parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CaseSensitive { get; set; } - - /// - /// Provides access to the Quiet parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Quiet { get; set; } - - /// - /// Provides access to the List parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument List { get; set; } - - /// - /// Provides access to the Include parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Include { get; set; } - - /// - /// Provides access to the Exclude parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Exclude { get; set; } - - /// - /// Provides access to the NotMatch parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument NotMatch { get; set; } - - /// - /// Provides access to the AllMatches parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument AllMatches { get; set; } - - /// - /// Provides access to the Encoding parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Encoding { get; set; } - - /// - /// Provides access to the Context parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Context { 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 System.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(Pattern.Expression != null) - { - targetCommand.AddParameter("Pattern", Pattern.Get(context)); - } - - if(Path.Expression != null) - { - targetCommand.AddParameter("Path", Path.Get(context)); - } - - if(LiteralPath.Expression != null) - { - targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); - } - - if(SimpleMatch.Expression != null) - { - targetCommand.AddParameter("SimpleMatch", SimpleMatch.Get(context)); - } - - if(CaseSensitive.Expression != null) - { - targetCommand.AddParameter("CaseSensitive", CaseSensitive.Get(context)); - } - - if(Quiet.Expression != null) - { - targetCommand.AddParameter("Quiet", Quiet.Get(context)); - } - - if(List.Expression != null) - { - targetCommand.AddParameter("List", List.Get(context)); - } - - if(Include.Expression != null) - { - targetCommand.AddParameter("Include", Include.Get(context)); - } - - if(Exclude.Expression != null) - { - targetCommand.AddParameter("Exclude", Exclude.Get(context)); - } - - if(NotMatch.Expression != null) - { - targetCommand.AddParameter("NotMatch", NotMatch.Get(context)); - } - - if(AllMatches.Expression != null) - { - targetCommand.AddParameter("AllMatches", AllMatches.Get(context)); - } - - if(Encoding.Expression != null) - { - targetCommand.AddParameter("Encoding", Encoding.Get(context)); - } - - if(Context.Expression != null) - { - targetCommand.AddParameter("Context", Context.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs deleted file mode 100644 index 9f62c075014..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Select-Xml command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class SelectXml : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public SelectXml() - { - this.DisplayName = "Select-Xml"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Xml"; } } - - // 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 Xml parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Xml { get; set; } - - /// - /// Provides access to the Content parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Content { get; set; } - - /// - /// Provides access to the XPath parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument XPath { get; set; } - - /// - /// Provides access to the Namespace parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Namespace { 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 System.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(Xml.Expression != null) - { - targetCommand.AddParameter("Xml", Xml.Get(context)); - } - - if(Content.Expression != null) - { - targetCommand.AddParameter("Content", Content.Get(context)); - } - - if(XPath.Expression != null) - { - targetCommand.AddParameter("XPath", XPath.Get(context)); - } - - if(Namespace.Expression != null) - { - targetCommand.AddParameter("Namespace", Namespace.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs deleted file mode 100644 index 58f98c00ff7..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs +++ /dev/null @@ -1,238 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Send-MailMessage command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class SendMailMessage : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public SendMailMessage() - { - this.DisplayName = "Send-MailMessage"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Send-MailMessage"; } } - - // Arguments - - /// - /// Provides access to the Attachments parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Attachments { get; set; } - - /// - /// Provides access to the Bcc parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Bcc { get; set; } - - /// - /// Provides access to the Body parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Body { get; set; } - - /// - /// Provides access to the BodyAsHtml parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument BodyAsHtml { get; set; } - - /// - /// Provides access to the Encoding parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Encoding { get; set; } - - /// - /// Provides access to the Cc parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Cc { get; set; } - - /// - /// Provides access to the DeliveryNotificationOption parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument DeliveryNotificationOption { get; set; } - - /// - /// Provides access to the From parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument From { get; set; } - - /// - /// Provides access to the SmtpServer parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SmtpServer { get; set; } - - /// - /// Provides access to the Priority parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Priority { get; set; } - - /// - /// Provides access to the Subject parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Subject { get; set; } - - /// - /// Provides access to the To parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument To { get; set; } - - /// - /// Provides access to the Credential parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Credential { get; set; } - - /// - /// Provides access to the UseSsl parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument UseSsl { get; set; } - - /// - /// Provides access to the Port parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Port { 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 System.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(Attachments.Expression != null) - { - targetCommand.AddParameter("Attachments", Attachments.Get(context)); - } - - if(Bcc.Expression != null) - { - targetCommand.AddParameter("Bcc", Bcc.Get(context)); - } - - if(Body.Expression != null) - { - targetCommand.AddParameter("Body", Body.Get(context)); - } - - if(BodyAsHtml.Expression != null) - { - targetCommand.AddParameter("BodyAsHtml", BodyAsHtml.Get(context)); - } - - if(Encoding.Expression != null) - { - targetCommand.AddParameter("Encoding", Encoding.Get(context)); - } - - if(Cc.Expression != null) - { - targetCommand.AddParameter("Cc", Cc.Get(context)); - } - - if(DeliveryNotificationOption.Expression != null) - { - targetCommand.AddParameter("DeliveryNotificationOption", DeliveryNotificationOption.Get(context)); - } - - if(From.Expression != null) - { - targetCommand.AddParameter("From", From.Get(context)); - } - - if(SmtpServer.Expression != null) - { - targetCommand.AddParameter("SmtpServer", SmtpServer.Get(context)); - } - - if(Priority.Expression != null) - { - targetCommand.AddParameter("Priority", Priority.Get(context)); - } - - if(Subject.Expression != null) - { - targetCommand.AddParameter("Subject", Subject.Get(context)); - } - - if(To.Expression != null) - { - targetCommand.AddParameter("To", To.Get(context)); - } - - if(Credential.Expression != null) - { - targetCommand.AddParameter("Credential", Credential.Get(context)); - } - - if(UseSsl.Expression != null) - { - targetCommand.AddParameter("UseSsl", UseSsl.Get(context)); - } - - if(Port.Expression != null) - { - targetCommand.AddParameter("Port", Port.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs deleted file mode 100644 index 7dea544d6bf..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Set-Date command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class SetDate : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public SetDate() - { - this.DisplayName = "Set-Date"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-Date"; } } - - // Arguments - - /// - /// Provides access to the Date parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Date { get; set; } - - /// - /// Provides access to the Adjust parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Adjust { get; set; } - - /// - /// Provides access to the DisplayHint parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument DisplayHint { 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 System.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(Adjust.Expression != null) - { - targetCommand.AddParameter("Adjust", Adjust.Get(context)); - } - - if(DisplayHint.Expression != null) - { - targetCommand.AddParameter("DisplayHint", DisplayHint.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs deleted file mode 100644 index deefdb9cbe8..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs +++ /dev/null @@ -1,178 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Set-TraceSource command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class SetTraceSource : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public SetTraceSource() - { - this.DisplayName = "Set-TraceSource"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-TraceSource"; } } - - // Arguments - - /// - /// Provides access to the Name parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Name { get; set; } - - /// - /// Provides access to the Option parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Option { get; set; } - - /// - /// Provides access to the ListenerOption parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument ListenerOption { get; set; } - - /// - /// Provides access to the FilePath parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument FilePath { get; set; } - - /// - /// Provides access to the Force parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Force { get; set; } - - /// - /// Provides access to the Debugger parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Debugger { get; set; } - - /// - /// Provides access to the PSHost parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument PSHost { get; set; } - - /// - /// Provides access to the RemoveListener parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument RemoveListener { get; set; } - - /// - /// Provides access to the RemoveFileListener parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument RemoveFileListener { 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 System.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(Option.Expression != null) - { - targetCommand.AddParameter("Option", Option.Get(context)); - } - - if(ListenerOption.Expression != null) - { - targetCommand.AddParameter("ListenerOption", ListenerOption.Get(context)); - } - - if(FilePath.Expression != null) - { - targetCommand.AddParameter("FilePath", FilePath.Get(context)); - } - - if(Force.Expression != null) - { - targetCommand.AddParameter("Force", Force.Get(context)); - } - - if(Debugger.Expression != null) - { - targetCommand.AddParameter("Debugger", Debugger.Get(context)); - } - - if(PSHost.Expression != null) - { - targetCommand.AddParameter("PSHost", PSHost.Get(context)); - } - - if(RemoveListener.Expression != null) - { - targetCommand.AddParameter("RemoveListener", RemoveListener.Get(context)); - } - - if(RemoveFileListener.Expression != null) - { - targetCommand.AddParameter("RemoveFileListener", RemoveFileListener.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/SortObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs deleted file mode 100644 index ab7361ede53..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs +++ /dev/null @@ -1,130 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Sort-Object command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class SortObject : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public SortObject() - { - this.DisplayName = "Sort-Object"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Sort-Object"; } } - - // Arguments - - /// - /// Provides access to the Descending parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Descending { get; set; } - - /// - /// Provides access to the Unique parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Unique { 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 System.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(Descending.Expression != null) - { - targetCommand.AddParameter("Descending", Descending.Get(context)); - } - - if(Unique.Expression != null) - { - targetCommand.AddParameter("Unique", Unique.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/StartSleepActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs deleted file mode 100644 index fd2b2383108..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Start-Sleep command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class StartSleep : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public StartSleep() - { - this.DisplayName = "Start-Sleep"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Start-Sleep"; } } - - // Arguments - - /// - /// Provides access to the Seconds parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Seconds { get; set; } - - /// - /// Provides access to the Milliseconds parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Milliseconds { 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 System.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(Seconds.Expression != null) - { - targetCommand.AddParameter("Seconds", Seconds.Get(context)); - } - - if(Milliseconds.Expression != null) - { - targetCommand.AddParameter("Milliseconds", Milliseconds.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs deleted file mode 100644 index 90779598ff5..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Tee-Object command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class TeeObject : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public TeeObject() - { - this.DisplayName = "Tee-Object"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Tee-Object"; } } - - // Arguments - - /// - /// Provides access to the InputObject parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument InputObject { get; set; } - - /// - /// Provides access to the FilePath parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument FilePath { get; set; } - - /// - /// Provides access to the LiteralPath parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument LiteralPath { get; set; } - - /// - /// Provides access to the Append parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Append { get; set; } - - /// - /// Provides access to the Variable parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Variable { 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 System.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(FilePath.Expression != null) - { - targetCommand.AddParameter("FilePath", FilePath.Get(context)); - } - - if(LiteralPath.Expression != null) - { - targetCommand.AddParameter("LiteralPath", LiteralPath.Get(context)); - } - - if(Append.Expression != null) - { - targetCommand.AddParameter("Append", Append.Get(context)); - } - - if(Variable.Expression != null) - { - targetCommand.AddParameter("Variable", Variable.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs deleted file mode 100644 index 816cc4efb97..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Unblock-File command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class UnblockFile : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public UnblockFile() - { - this.DisplayName = "Unblock-File"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unblock-File"; } } - - // 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; } - - - // 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 System.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)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs deleted file mode 100644 index 3f9ec130b1d..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs +++ /dev/null @@ -1,94 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Unregister-Event command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class UnregisterEvent : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public UnregisterEvent() - { - this.DisplayName = "Unregister-Event"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unregister-Event"; } } - - // 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 System.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/UpdateListActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs deleted file mode 100644 index 1bc031f4276..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs +++ /dev/null @@ -1,118 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Update-List command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class UpdateList : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public UpdateList() - { - this.DisplayName = "Update-List"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Update-List"; } } - - // Arguments - - /// - /// Provides access to the Add parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Add { get; set; } - - /// - /// Provides access to the Remove parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Remove { get; set; } - - /// - /// Provides access to the Replace parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Replace { 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; } - - - // 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 System.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(Add.Expression != null) - { - targetCommand.AddParameter("Add", Add.Get(context)); - } - - if(Remove.Expression != null) - { - targetCommand.AddParameter("Remove", Remove.Get(context)); - } - - if(Replace.Expression != null) - { - targetCommand.AddParameter("Replace", Replace.Get(context)); - } - - if(InputObject.Expression != null) - { - targetCommand.AddParameter("InputObject", InputObject.Get(context)); - } - - if(Property.Expression != null) - { - targetCommand.AddParameter("Property", Property.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs deleted file mode 100644 index ba1fd311d85..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Wait-Event command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WaitEvent : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WaitEvent() - { - this.DisplayName = "Wait-Event"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Wait-Event"; } } - - // Arguments - - /// - /// Provides access to the SourceIdentifier parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SourceIdentifier { get; set; } - - /// - /// Provides access to the Timeout parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Timeout { 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 System.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(Timeout.Expression != null) - { - targetCommand.AddParameter("Timeout", Timeout.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs deleted file mode 100644 index df38492161c..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Debug command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteDebug : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteDebug() - { - this.DisplayName = "Write-Debug"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Debug"; } } - - // Arguments - - /// - /// Provides access to the Message parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Message { 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 System.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(Message.Expression != null) - { - targetCommand.AddParameter("Message", Message.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs deleted file mode 100644 index 714f6f5fd50..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs +++ /dev/null @@ -1,190 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Error command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteError : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteError() - { - this.DisplayName = "Write-Error"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Error"; } } - - // Arguments - - /// - /// Provides access to the Exception parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Exception { get; set; } - - /// - /// Provides access to the Message parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Message { get; set; } - - /// - /// Provides access to the ErrorRecord parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument ErrorRecord { get; set; } - - /// - /// Provides access to the Category parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Category { get; set; } - - /// - /// Provides access to the ErrorId parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument ErrorId { get; set; } - - /// - /// Provides access to the TargetObject parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument TargetObject { get; set; } - - /// - /// Provides access to the RecommendedAction parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument RecommendedAction { get; set; } - - /// - /// Provides access to the CategoryActivity parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CategoryActivity { get; set; } - - /// - /// Provides access to the CategoryReason parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CategoryReason { get; set; } - - /// - /// Provides access to the CategoryTargetName parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CategoryTargetName { get; set; } - - /// - /// Provides access to the CategoryTargetType parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CategoryTargetType { 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 System.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(Exception.Expression != null) - { - targetCommand.AddParameter("Exception", Exception.Get(context)); - } - - if(Message.Expression != null) - { - targetCommand.AddParameter("Message", Message.Get(context)); - } - - if(ErrorRecord.Expression != null) - { - targetCommand.AddParameter("ErrorRecord", ErrorRecord.Get(context)); - } - - if(Category.Expression != null) - { - targetCommand.AddParameter("Category", Category.Get(context)); - } - - if(ErrorId.Expression != null) - { - targetCommand.AddParameter("ErrorId", ErrorId.Get(context)); - } - - if(TargetObject.Expression != null) - { - targetCommand.AddParameter("TargetObject", TargetObject.Get(context)); - } - - if(RecommendedAction.Expression != null) - { - targetCommand.AddParameter("RecommendedAction", RecommendedAction.Get(context)); - } - - if(CategoryActivity.Expression != null) - { - targetCommand.AddParameter("CategoryActivity", CategoryActivity.Get(context)); - } - - if(CategoryReason.Expression != null) - { - targetCommand.AddParameter("CategoryReason", CategoryReason.Get(context)); - } - - if(CategoryTargetName.Expression != null) - { - targetCommand.AddParameter("CategoryTargetName", CategoryTargetName.Get(context)); - } - - if(CategoryTargetType.Expression != null) - { - targetCommand.AddParameter("CategoryTargetType", CategoryTargetType.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs deleted file mode 100644 index 4165e93941e..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Information command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteInformation : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteInformation() - { - this.DisplayName = "Write-Information"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Information"; } } - - // Arguments - - /// - /// Provides access to the MessageData parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument MessageData { get; set; } - - /// - /// Provides access to the Tags parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Tags { 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 System.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(MessageData.Expression != null) - { - targetCommand.AddParameter("MessageData", MessageData.Get(context)); - } - - if(Tags.Expression != null) - { - targetCommand.AddParameter("Tags", Tags.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs deleted file mode 100644 index 5c7d854fef9..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs +++ /dev/null @@ -1,82 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Output command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteOutput : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteOutput() - { - this.DisplayName = "Write-Output"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Output"; } } - - // Arguments - - /// - /// Provides access to the InputObject parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument InputObject { get; set; } - - /// - /// Provides access to the NoEnumerate parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument NoEnumerate { 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 System.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(NoEnumerate.Expression != null) - { - targetCommand.AddParameter("NoEnumerate", NoEnumerate.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs deleted file mode 100644 index 2bc0663cf3b..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs +++ /dev/null @@ -1,166 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Progress command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteProgress : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteProgress() - { - this.DisplayName = "Write-Progress"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Progress"; } } - - // Arguments - - /// - /// Provides access to the Activity parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Activity { get; set; } - - /// - /// Provides access to the Status parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Status { get; set; } - - /// - /// Provides access to the ProgressId parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument ProgressId { get; set; } - - /// - /// Provides access to the PercentComplete parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument PercentComplete { get; set; } - - /// - /// Provides access to the SecondsRemaining parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SecondsRemaining { get; set; } - - /// - /// Provides access to the CurrentOperation parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument CurrentOperation { get; set; } - - /// - /// Provides access to the ParentId parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument ParentId { get; set; } - - /// - /// Provides access to the Completed parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Completed { get; set; } - - /// - /// Provides access to the SourceId parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SourceId { 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 System.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(Activity.Expression != null) - { - targetCommand.AddParameter("Activity", Activity.Get(context)); - } - - if(Status.Expression != null) - { - targetCommand.AddParameter("Status", Status.Get(context)); - } - - if(ProgressId.Expression != null) - { - targetCommand.AddParameter("Id", ProgressId.Get(context)); - } - - if(PercentComplete.Expression != null) - { - targetCommand.AddParameter("PercentComplete", PercentComplete.Get(context)); - } - - if(SecondsRemaining.Expression != null) - { - targetCommand.AddParameter("SecondsRemaining", SecondsRemaining.Get(context)); - } - - if(CurrentOperation.Expression != null) - { - targetCommand.AddParameter("CurrentOperation", CurrentOperation.Get(context)); - } - - if(ParentId.Expression != null) - { - targetCommand.AddParameter("ParentId", ParentId.Get(context)); - } - - if(Completed.Expression != null) - { - targetCommand.AddParameter("Completed", Completed.Get(context)); - } - - if(SourceId.Expression != null) - { - targetCommand.AddParameter("SourceId", SourceId.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs deleted file mode 100644 index 9810d7557f4..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Verbose command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteVerbose : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteVerbose() - { - this.DisplayName = "Write-Verbose"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Verbose"; } } - - // Arguments - - /// - /// Provides access to the Message parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Message { 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 System.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(Message.Expression != null) - { - targetCommand.AddParameter("Message", Message.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs deleted file mode 100644 index 16a7279e23d..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs +++ /dev/null @@ -1,70 +0,0 @@ -// -// Copyright (C) Microsoft. All rights reserved. -// -using Microsoft.PowerShell.Activities; -using System.Management.Automation; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Write-Warning command in a Workflow. - /// - [System.CodeDom.Compiler.GeneratedCode("Microsoft.PowerShell.Activities.ActivityGenerator.GenerateFromName", "3.0")] - public sealed class WriteWarning : PSActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public WriteWarning() - { - this.DisplayName = "Write-Warning"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Warning"; } } - - // Arguments - - /// - /// Provides access to the Message parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument Message { 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 System.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(Message.Expression != null) - { - targetCommand.AddParameter("Message", Message.Get(context)); - } - - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs deleted file mode 100644 index 7e19a2c9513..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs +++ /dev/null @@ -1,105 +0,0 @@ -using System; -using Microsoft.PowerShell.Activities; -using System.Activities; -using System.Collections.Generic; -using System.ComponentModel; - - -namespace Microsoft.PowerShell.Utility.Activities -{ - /// - /// Activity to invoke the Microsoft.PowerShell.Utility\Import-LocalizedData command in a Workflow. - /// - public sealed class ImportLocalizedData : PSRemotingActivity - { - /// - /// Gets the display name of the command invoked by this activity. - /// - public ImportLocalizedData() - { - this.DisplayName = "Import-LocalizedData"; - } - - /// - /// Gets the fully qualified name of the command invoked by this activity. - /// - public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-LocalizedData"; } } - - // Arguments - - /// - /// Provides access to the UICulture parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument UICulture { get; set; } - - /// - /// Provides access to the BaseDirectory parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument BaseDirectory { get; set; } - - /// - /// Provides access to the FileName parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument FileName { get; set; } - - /// - /// Provides access to the SupportedCommand parameter. - /// - [ParameterSpecificCategory] - [DefaultValue(null)] - public InArgument SupportedCommand { get; set; } - - // Module defining this command - - - // Additional 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 System.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(UICulture.Expression != null) - { - targetCommand.AddParameter("UICulture", UICulture.Get(context)); - } - - if(BaseDirectory.Expression != null) - { - targetCommand.AddParameter("BaseDirectory", BaseDirectory.Get(context)); - } - //If BaseDirectory is not specified, try to use the workflow base directory. - else - { - throw new ArgumentException(GeneratedActivitiesResources.ImportLocalizedDataWithEmptyEmptyorNullBaseDirectory); - } - - if(FileName.Expression != null) - { - targetCommand.AddParameter("FileName", FileName.Get(context)); - } - - if(SupportedCommand.Expression != null) - { - targetCommand.AddParameter("SupportedCommand", SupportedCommand.Get(context)); - } - - return new ActivityImplementationContext() { PowerShellInstance = invoker }; - } - } -} diff --git a/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx b/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx deleted file mode 100644 index ab222f6fa1d..00000000000 --- a/src/Microsoft.PowerShell.Utility.Activities/resources/GeneratedActivitiesResources.resx +++ /dev/null @@ -1,124 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - Cannot have an empty BaseDirectory for importing localized data. Please specify a valid BaseDirectory and run the command again. - BaseDirectory should not be localized. This is a parameter. - -