From 273ccbea747e69373d3d192e694cd88291ca6759 Mon Sep 17 00:00:00 2001 From: Chris Dent <134605137+chrisdent-de@users.noreply.github.com> Date: Mon, 31 Jul 2023 16:00:08 +0100 Subject: [PATCH] Fixes ambiguous overload from #969 (#970) --- TaskService/TaskService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskService/TaskService.cs b/TaskService/TaskService.cs index 0a476698d..70d970c16 100644 --- a/TaskService/TaskService.cs +++ b/TaskService/TaskService.cs @@ -144,7 +144,7 @@ public TaskService(string targetServer, string userName = null, string accountDo /// The password that is used to connect to the computer as a SecureString. If the user name and securePassword are not specified, then the current token is used. /// /// If set to true force Task Scheduler 1.0 compatibility. - public TaskService(string targetServer, [Optional] string userName, [Optional] string accountDomain, [Optional] SecureString userSecurePassword, bool forceV1 = false) + public TaskService(string targetServer, string userName, string accountDomain, SecureString userSecurePassword, bool forceV1 = false) { BeginInit(); TargetServer = targetServer;