Skip to content
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

Added a setter for the AuthenticationProtocolMessage.Script property #1280

Merged
merged 1 commit into from
Oct 18, 2019

Conversation

mafurman
Copy link
Member

Fixes #1263.

Also modified the setters for the other public properties on AuthenticationProtocolMessage so that if an ArgumentNullException is thrown it includes the name of the property (not just "value").

NOTE: LogHelper.LogArgumentNullException() uses the following message:
"IDX10000: The parameter '{0}' cannot be a 'null' or an empty object."
This doesn't really make sense for the properties on this class since they can be empty strings.
Should another log message be added that's just "the parameter cannot be null"?

@mafurman mafurman added this to the 5.6.0 milestone Oct 17, 2019
@@ -148,7 +149,7 @@ public string IssuerAddress
set
{
if (value == null)
throw LogHelper.LogArgumentNullException("value");
throw LogHelper.LogArgumentNullException(nameof(IssuerAddress));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice.
We should follow this pattern.

Copy link
Member

@brentschmaltz brentschmaltz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mafurman
Copy link
Member Author

/azp run

@mafurman mafurman merged commit 38d5cb1 into dev5x Oct 18, 2019
@mafurman mafurman deleted the mafurman/setScript branch October 18, 2019 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants