-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds optional securestring password constructor #969
Adds optional securestring password constructor #969
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work. Pending the single change, I'll commit.
TaskService/TaskService.cs
Outdated
/// 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. | ||
/// </param> | ||
/// <param name="forceV1">If set to <c>true</c> force Task Scheduler 1.0 compatibility.</param> | ||
public TaskService(string targetServer, string userName = null, string accountDomain = null, SecureString userSecurePassword = null, bool forceV1 = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change to the following to disambiguate from other ctor with optional params:
public TaskService(string targetServer, [Optional] string userName, [Optional] string accountDomain, [Optional] SecureString userSecurePassword, bool forceV1 = false)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Done.
…l password and causes access denied in ctor.
Fixes #967