From dceb29e5779e4abe448c361e857486351f32b3b4 Mon Sep 17 00:00:00 2001 From: Jesus Fernandez Date: Sun, 4 Aug 2024 07:46:36 +0300 Subject: [PATCH] Refactoring (#22) --- PowerAutomate.Desktop.sln | 3 --- .../Modules.AzureKeyVault.Actions.csproj | 2 -- .../Modules.CloudFlows.Actions.csproj | 21 ---------------- .../RunFlowAction.cs | 3 --- .../ConvertDataTableToHtmlTableAction.cs | 3 --- .../ConvertListToHtmlListAction.cs | 3 --- .../Modules.HTML.Actions.csproj | 7 ------ ...dules.Windows.Notifications.Actions.csproj | 25 ++----------------- .../ShowNotificationAction.cs | 3 --- .../CreateRegistryKeyAction.cs | 3 --- .../DeleteRegistryKeyAction.cs | 3 --- .../DeleteRegistryValueAction.cs | 3 --- .../GetRegistryValueAction.cs | 3 --- .../GetSubKeysInRegistryKeyAction.cs | 3 --- .../GetValuesInRegistryKeyAction.cs | 3 --- .../Modules.Windows.Registry.Actions.csproj | 2 -- .../SetRegistryValueAction.cs | 3 --- .../Actions/CreateTaskAction.cs | 3 --- .../Actions/CreateTaskActionAction.cs | 3 --- .../Actions/CreateTaskTriggerAction.cs | 3 --- .../Actions/DeleteTaskAction.cs | 3 --- .../Actions/DeleteTaskActionAction.cs | 3 --- .../Actions/DeleteTaskTriggerAction.cs | 3 --- .../Actions/ExportTaskAction.cs | 3 --- .../Actions/GetFolderTasksAction.cs | 3 --- .../Actions/GetTaskAction.cs | 3 --- .../Actions/GetTaskActionAction.cs | 3 --- .../Actions/GetTaskActionsAction.cs | 3 --- .../Actions/GetTaskTriggerAction.cs | 3 --- .../Actions/GetTaskTriggersAction.cs | 3 --- .../Actions/ImportTaskAction.cs | 3 --- .../Actions/StartTaskAction.cs | 3 --- .../Actions/StopTaskAction.cs | 3 --- .../Actions/ToggleTaskAction.cs | 3 --- .../Actions/ToggleTaskTriggerAction.cs | 3 --- ...dules.Windows.TaskScheduler.Actions.csproj | 11 ++------ src/Modules.Actions.Shared/Debugger.cs | 16 ------------ .../Modules.Actions.Shared.projitems | 14 ----------- .../Modules.Actions.Shared.shproj | 13 ---------- 39 files changed, 4 insertions(+), 197 deletions(-) delete mode 100644 src/Modules.Actions.Shared/Debugger.cs delete mode 100644 src/Modules.Actions.Shared/Modules.Actions.Shared.projitems delete mode 100644 src/Modules.Actions.Shared/Modules.Actions.Shared.shproj diff --git a/PowerAutomate.Desktop.sln b/PowerAutomate.Desktop.sln index a345bd6..3df542a 100644 --- a/PowerAutomate.Desktop.sln +++ b/PowerAutomate.Desktop.sln @@ -15,8 +15,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modules.HTML.Actions", "mod EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modules.PetStore.Actions", "samples\Modules.PetStore.Actions\Modules.PetStore.Actions.csproj", "{3D0BC3F2-AB03-44A3-8FAF-599FB80DB717}" EndProject -Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "Modules.Actions.Shared", "src\Modules.Actions.Shared\Modules.Actions.Shared.shproj", "{7E19E2F1-6DE7-4A0E-AED8-7CEA38B166AF}" -EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Samples", "Samples", "{64A2FE14-920C-4A2F-8F4A-28B77CC84BA4}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "OpenAPI", "OpenAPI", "{6709150F-B5E8-4377-BAEA-5394C5340806}" @@ -150,7 +148,6 @@ Global {79D5DFFD-323B-4DC4-950D-13DA2C1F31E0} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4} {D622D84B-9853-4E6E-AE09-1988FBFE6392} = {79D5DFFD-323B-4DC4-950D-13DA2C1F31E0} {435C2B05-E667-4AAD-9BE5-3863345B98A4} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4} - {7E19E2F1-6DE7-4A0E-AED8-7CEA38B166AF} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4} {3D0BC3F2-AB03-44A3-8FAF-599FB80DB717} = {6709150F-B5E8-4377-BAEA-5394C5340806} {A9858CCE-DDB1-4942-84BE-08991E46A818} = {6709150F-B5E8-4377-BAEA-5394C5340806} {E7F31F2C-1091-4B82-A685-C7A74FC80A1D} = {3B78C634-DFD6-43DA-A30E-33AC42224BD4} diff --git a/modules/Modules.AzureKeyVault.Actions/Modules.AzureKeyVault.Actions.csproj b/modules/Modules.AzureKeyVault.Actions/Modules.AzureKeyVault.Actions.csproj index 751205f..2d52946 100644 --- a/modules/Modules.AzureKeyVault.Actions/Modules.AzureKeyVault.Actions.csproj +++ b/modules/Modules.AzureKeyVault.Actions/Modules.AzureKeyVault.Actions.csproj @@ -29,6 +29,4 @@ - - diff --git a/modules/Modules.CloudFlows.Actions/Modules.CloudFlows.Actions.csproj b/modules/Modules.CloudFlows.Actions/Modules.CloudFlows.Actions.csproj index 9db2a15..1daa974 100644 --- a/modules/Modules.CloudFlows.Actions/Modules.CloudFlows.Actions.csproj +++ b/modules/Modules.CloudFlows.Actions/Modules.CloudFlows.Actions.csproj @@ -19,21 +19,6 @@ True Resources.resx - - True - True - Resources.resx - - - True - True - Resources.resx - - - True - True - Resources.resx - @@ -41,12 +26,6 @@ PublicResXFileCodeGenerator Resources.Designer.cs - - PublicResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/modules/Modules.CloudFlows.Actions/RunFlowAction.cs b/modules/Modules.CloudFlows.Actions/RunFlowAction.cs index ba2c8ea..d1b9d7e 100644 --- a/modules/Modules.CloudFlows.Actions/RunFlowAction.cs +++ b/modules/Modules.CloudFlows.Actions/RunFlowAction.cs @@ -8,7 +8,6 @@ using System.Text; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.CloudFlows.Actions; @@ -35,8 +34,6 @@ public class RunFlowAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var client = new HttpClient(); diff --git a/modules/Modules.HTML.Actions/ConvertDataTableToHtmlTableAction.cs b/modules/Modules.HTML.Actions/ConvertDataTableToHtmlTableAction.cs index 6541aaf..e2b70fb 100644 --- a/modules/Modules.HTML.Actions/ConvertDataTableToHtmlTableAction.cs +++ b/modules/Modules.HTML.Actions/ConvertDataTableToHtmlTableAction.cs @@ -8,7 +8,6 @@ using System.Text; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.HTML.Actions; @@ -29,8 +28,6 @@ public class ConvertDataTableToHtmlTableAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { var html = new StringBuilder(); diff --git a/modules/Modules.HTML.Actions/ConvertListToHtmlListAction.cs b/modules/Modules.HTML.Actions/ConvertListToHtmlListAction.cs index 95b9d3e..d583355 100644 --- a/modules/Modules.HTML.Actions/ConvertListToHtmlListAction.cs +++ b/modules/Modules.HTML.Actions/ConvertListToHtmlListAction.cs @@ -9,7 +9,6 @@ using System.Text; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.HTML.Actions; @@ -34,8 +33,6 @@ public class ConvertListToHtmlListAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { var rootTag = IsOrdered ? "ol" : "ul"; diff --git a/modules/Modules.HTML.Actions/Modules.HTML.Actions.csproj b/modules/Modules.HTML.Actions/Modules.HTML.Actions.csproj index 52ea951..4ac9a97 100644 --- a/modules/Modules.HTML.Actions/Modules.HTML.Actions.csproj +++ b/modules/Modules.HTML.Actions/Modules.HTML.Actions.csproj @@ -18,11 +18,6 @@ True Resources.resx - - True - True - Resources.resx - @@ -32,6 +27,4 @@ - - diff --git a/modules/Modules.Windows.Notifications.Actions/Modules.Windows.Notifications.Actions.csproj b/modules/Modules.Windows.Notifications.Actions/Modules.Windows.Notifications.Actions.csproj index e23a561..03d541d 100644 --- a/modules/Modules.Windows.Notifications.Actions/Modules.Windows.Notifications.Actions.csproj +++ b/modules/Modules.Windows.Notifications.Actions/Modules.Windows.Notifications.Actions.csproj @@ -9,8 +9,8 @@ - - + + @@ -19,21 +19,6 @@ True Resources.resx - - True - True - Resources.resx - - - True - True - Resources.resx - - - True - True - Resources.resx - @@ -41,12 +26,6 @@ PublicResXFileCodeGenerator Resources.Designer.cs - - PublicResXFileCodeGenerator - Resources.Designer.cs - - - diff --git a/modules/Modules.Windows.Notifications.Actions/ShowNotificationAction.cs b/modules/Modules.Windows.Notifications.Actions/ShowNotificationAction.cs index 468a1bb..cb54364 100644 --- a/modules/Modules.Windows.Notifications.Actions/ShowNotificationAction.cs +++ b/modules/Modules.Windows.Notifications.Actions/ShowNotificationAction.cs @@ -8,7 +8,6 @@ using Windows.UI.Notifications; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Notifications.Actions; @@ -26,8 +25,6 @@ public class ShowNotificationAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { var toastXml = ToastNotificationManager.GetTemplateContent(ToastTemplateType.ToastText01); diff --git a/modules/Modules.Windows.Registry.Actions/CreateRegistryKeyAction.cs b/modules/Modules.Windows.Registry.Actions/CreateRegistryKeyAction.cs index b6f43ae..cb7c1e1 100644 --- a/modules/Modules.Windows.Registry.Actions/CreateRegistryKeyAction.cs +++ b/modules/Modules.Windows.Registry.Actions/CreateRegistryKeyAction.cs @@ -6,7 +6,6 @@ using System.Diagnostics.CodeAnalysis; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -27,8 +26,6 @@ public class CreateRegistryKeyAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/DeleteRegistryKeyAction.cs b/modules/Modules.Windows.Registry.Actions/DeleteRegistryKeyAction.cs index 33362c7..b2b23bf 100644 --- a/modules/Modules.Windows.Registry.Actions/DeleteRegistryKeyAction.cs +++ b/modules/Modules.Windows.Registry.Actions/DeleteRegistryKeyAction.cs @@ -7,7 +7,6 @@ using System.Diagnostics.CodeAnalysis; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -32,8 +31,6 @@ public class DeleteRegistryKeyAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/DeleteRegistryValueAction.cs b/modules/Modules.Windows.Registry.Actions/DeleteRegistryValueAction.cs index 31cbf2e..d0abbdc 100644 --- a/modules/Modules.Windows.Registry.Actions/DeleteRegistryValueAction.cs +++ b/modules/Modules.Windows.Registry.Actions/DeleteRegistryValueAction.cs @@ -7,7 +7,6 @@ using System.Diagnostics.CodeAnalysis; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -32,8 +31,6 @@ public class DeleteRegistryValueAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/GetRegistryValueAction.cs b/modules/Modules.Windows.Registry.Actions/GetRegistryValueAction.cs index 1c0fba9..9af867e 100644 --- a/modules/Modules.Windows.Registry.Actions/GetRegistryValueAction.cs +++ b/modules/Modules.Windows.Registry.Actions/GetRegistryValueAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -39,8 +38,6 @@ public class GetRegistryValueAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/GetSubKeysInRegistryKeyAction.cs b/modules/Modules.Windows.Registry.Actions/GetSubKeysInRegistryKeyAction.cs index f70ca53..29eeb15 100644 --- a/modules/Modules.Windows.Registry.Actions/GetSubKeysInRegistryKeyAction.cs +++ b/modules/Modules.Windows.Registry.Actions/GetSubKeysInRegistryKeyAction.cs @@ -8,7 +8,6 @@ using System.Linq; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -29,8 +28,6 @@ public class GetSubKeysInRegistryKeyAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/GetValuesInRegistryKeyAction.cs b/modules/Modules.Windows.Registry.Actions/GetValuesInRegistryKeyAction.cs index ea5ff22..f9719f6 100644 --- a/modules/Modules.Windows.Registry.Actions/GetValuesInRegistryKeyAction.cs +++ b/modules/Modules.Windows.Registry.Actions/GetValuesInRegistryKeyAction.cs @@ -8,7 +8,6 @@ using System.Linq; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -29,8 +28,6 @@ public class GetValuesInRegistryKeyAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.Registry.Actions/Modules.Windows.Registry.Actions.csproj b/modules/Modules.Windows.Registry.Actions/Modules.Windows.Registry.Actions.csproj index f705ed8..ed7b27a 100644 --- a/modules/Modules.Windows.Registry.Actions/Modules.Windows.Registry.Actions.csproj +++ b/modules/Modules.Windows.Registry.Actions/Modules.Windows.Registry.Actions.csproj @@ -27,6 +27,4 @@ - - diff --git a/modules/Modules.Windows.Registry.Actions/SetRegistryValueAction.cs b/modules/Modules.Windows.Registry.Actions/SetRegistryValueAction.cs index f3cff91..d1e2024 100644 --- a/modules/Modules.Windows.Registry.Actions/SetRegistryValueAction.cs +++ b/modules/Modules.Windows.Registry.Actions/SetRegistryValueAction.cs @@ -9,7 +9,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionSelectors; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.Registry.Actions; @@ -52,8 +51,6 @@ public class SetRegistryValueAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var registryKey = RegistryExtensions.ParseKey(Path, true); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskAction.cs index 52645c3..cb96561 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -39,8 +38,6 @@ public class CreateTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskActionAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskActionAction.cs index f1e8bfe..51e38ad 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskActionAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskActionAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -50,8 +49,6 @@ public class CreateTaskActionAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskTriggerAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskTriggerAction.cs index 3bf9c7e..898b2f9 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskTriggerAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/CreateTaskTriggerAction.cs @@ -10,7 +10,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.ActionSelectors; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Enums; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Extensions; @@ -118,8 +117,6 @@ public class CreateTaskTriggerAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskAction.cs index 12a26af..6e9367b 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -42,8 +41,6 @@ public class DeleteTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskActionAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskActionAction.cs index 12a6efe..6e1d8a9 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskActionAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskActionAction.cs @@ -9,7 +9,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -48,8 +47,6 @@ public class DeleteTaskActionAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskTriggerAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskTriggerAction.cs index 344ba82..dde5421 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskTriggerAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/DeleteTaskTriggerAction.cs @@ -9,7 +9,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -48,8 +47,6 @@ public class DeleteTaskTriggerAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ExportTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ExportTaskAction.cs index dd03953..da58ccb 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ExportTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ExportTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -44,8 +43,6 @@ public class ExportTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetFolderTasksAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetFolderTasksAction.cs index da4b099..e12c462 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetFolderTasksAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetFolderTasksAction.cs @@ -9,7 +9,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -49,8 +48,6 @@ public class GetFolderTasksAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskAction.cs index c939c27..ed045f3 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Extensions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Types; @@ -46,8 +45,6 @@ public class GetTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionAction.cs index 57559e2..3ca01e0 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Extensions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Types; @@ -51,8 +50,6 @@ public class GetTaskActionAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionsAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionsAction.cs index ebfc68e..c50e21c 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionsAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskActionsAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -45,8 +44,6 @@ public class GetTaskActionsAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggerAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggerAction.cs index 035c634..dd53014 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggerAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggerAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Extensions; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Types; @@ -51,8 +50,6 @@ public class GetTaskTriggerAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggersAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggersAction.cs index b808e09..bb28807 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggersAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/GetTaskTriggersAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -45,8 +44,6 @@ public class GetTaskTriggersAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ImportTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ImportTaskAction.cs index 2fd1bed..271cad9 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ImportTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ImportTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -42,8 +41,6 @@ public class ImportTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/StartTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/StartTaskAction.cs index df9ee52..61d81bf 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/StartTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/StartTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -41,8 +40,6 @@ public class StartTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/StopTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/StopTaskAction.cs index db4fde7..2a18f56 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/StopTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/StopTaskAction.cs @@ -7,7 +7,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -41,8 +40,6 @@ public class StopTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskAction.cs index 9410d5e..172a164 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskAction.cs @@ -8,7 +8,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -46,8 +45,6 @@ public class ToggleTaskAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskTriggerAction.cs b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskTriggerAction.cs index ef14723..698c773 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskTriggerAction.cs +++ b/modules/Modules.Windows.TaskScheduler.Actions/Actions/ToggleTaskTriggerAction.cs @@ -9,7 +9,6 @@ using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK; using Microsoft.PowerPlatform.PowerAutomate.Desktop.Actions.SDK.Attributes; using Microsoft.Win32.TaskScheduler; -using PowerAutomate.Desktop.Modules.Actions.Shared; using PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Exceptions; namespace PowerAutomate.Desktop.Modules.Windows.TaskScheduler.Actions.Actions; @@ -51,8 +50,6 @@ public class ToggleTaskTriggerAction : ActionBase public override void Execute(ActionContext context) { - Debugger.Launch(); - try { using var taskService = new TaskService(TargetServer, UserName, AccountDomain, Password); diff --git a/modules/Modules.Windows.TaskScheduler.Actions/Modules.Windows.TaskScheduler.Actions.csproj b/modules/Modules.Windows.TaskScheduler.Actions/Modules.Windows.TaskScheduler.Actions.csproj index 4388c2b..0bcb5e6 100644 --- a/modules/Modules.Windows.TaskScheduler.Actions/Modules.Windows.TaskScheduler.Actions.csproj +++ b/modules/Modules.Windows.TaskScheduler.Actions/Modules.Windows.TaskScheduler.Actions.csproj @@ -9,9 +9,9 @@ - + - + @@ -20,11 +20,6 @@ True Resources.resx - - True - True - Resources.resx - @@ -34,6 +29,4 @@ - - diff --git a/src/Modules.Actions.Shared/Debugger.cs b/src/Modules.Actions.Shared/Debugger.cs deleted file mode 100644 index a2ffdee..0000000 --- a/src/Modules.Actions.Shared/Debugger.cs +++ /dev/null @@ -1,16 +0,0 @@ -// --------------------------------------------------- -// Copyright (c) Jesus Fernandez. All Rights Reserved. -// --------------------------------------------------- - -using System.Diagnostics; - -namespace PowerAutomate.Desktop.Modules.Actions.Shared; - -internal static class Debugger -{ - [Conditional("DEBUG")] - public static void Launch() - { - System.Diagnostics.Debugger.Launch(); - } -} \ No newline at end of file diff --git a/src/Modules.Actions.Shared/Modules.Actions.Shared.projitems b/src/Modules.Actions.Shared/Modules.Actions.Shared.projitems deleted file mode 100644 index fcbbad2..0000000 --- a/src/Modules.Actions.Shared/Modules.Actions.Shared.projitems +++ /dev/null @@ -1,14 +0,0 @@ - - - - $(MSBuildAllProjects);$(MSBuildThisFileFullPath) - true - 7e19e2f1-6de7-4a0e-aed8-7cea38b166af - - - Modules.Actions.Shared - - - - - \ No newline at end of file diff --git a/src/Modules.Actions.Shared/Modules.Actions.Shared.shproj b/src/Modules.Actions.Shared/Modules.Actions.Shared.shproj deleted file mode 100644 index 50bd2da..0000000 --- a/src/Modules.Actions.Shared/Modules.Actions.Shared.shproj +++ /dev/null @@ -1,13 +0,0 @@ - - - - 7e19e2f1-6de7-4a0e-aed8-7cea38b166af - 14.0 - - - - - - - -