-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Unify argument validation into shared source class #7569
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.
LGTM. I asked for a couple of small changes, mostly around formatting, for internal consistency within the Event Hubs library.
Event Hubs has a release related to preview 3 due this week, and I'd like to request that this not be merged until we've passed that milestone. I'm tagging "Request Changes" only to prevent an unintended merge beforehand; I don't see any blockers otherwise.
sdk/eventhub/Azure.Messaging.EventHubs/tests/Authorization/SharedAccessSignatureTests.cs
Show resolved
Hide resolved
444144e
to
c364344
Compare
/azp run net - keyvault - ci Transient failure in Microsoft.Azure.EventHubs.Tests.ServiceFabricProcessor.OptionsTests.RuntimeInformationTest again. |
No pipelines are associated with this pull request. |
/azp run net - keyvault - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run net - core - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run net - keyvault - ci |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
Event Hubs should be clear. Thanks for your patience.
Will help prevent "possible null" errors later when we enable nullability for code that uses this class.
Forgot to update this project in another solution.
Relates to Azure/azure-sdk-for-net#7547 and should be merged only after PR Azure/azure-sdk-for-net#7569 is merged.
* Add guideline about using a common argument validator Relates to Azure/azure-sdk-for-net#7547 and should be merged only after PR Azure/azure-sdk-for-net#7569 is merged. * Resolve PR feedback * Move implementation details to separate page This is similar to what other languages do. Added the jekyll-relative-links plugin, which is documented to be supported by GitHub already anyway.
* Add guideline about using a common argument validator Relates to Azure/azure-sdk-for-net#7547 and should be merged only after PR Azure/azure-sdk-for-net#7569 is merged. * Resolve PR feedback * Move implementation details to separate page This is similar to what other languages do. Added the jekyll-relative-links plugin, which is documented to be supported by GitHub already anyway.
Fixes #7547. For now, this only updates EventHub, but the PR will be updated to update KeyVault in which, for another PR (#7563) included a copy. @schaabs did have some concerns about what this does to the stack, but it does help keep the exceptions consistent, i.e.
ArgumentNullException
for null andArgumentException
for empty strings, which is consistent with the Framework (example).