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

Unify argument validation into shared source class #7569

Merged
merged 8 commits into from
Sep 18, 2019

Conversation

heaths
Copy link
Member

@heaths heaths commented Sep 11, 2019

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 and ArgumentException for empty strings, which is consistent with the Framework (example).

Copy link
Member

@jsquire jsquire left a 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.

@heaths
Copy link
Member Author

heaths commented Sep 13, 2019

/azp run net - keyvault - ci

Transient failure in Microsoft.Azure.EventHubs.Tests.ServiceFabricProcessor.OptionsTests.RuntimeInformationTest again.

@azure-pipelines
Copy link

No pipelines are associated with this pull request.

@heaths
Copy link
Member Author

heaths commented Sep 13, 2019

/azp run net - keyvault - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@heaths
Copy link
Member Author

heaths commented Sep 13, 2019

/azp run net - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@heaths
Copy link
Member Author

heaths commented Sep 13, 2019

/azp run net - keyvault - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@jsquire jsquire left a 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.

@heaths heaths merged commit 923d532 into Azure:master Sep 18, 2019
@heaths heaths deleted the issue7547 branch September 18, 2019 03:29
heaths added a commit to heaths/azure-sdk that referenced this pull request Sep 20, 2019
heaths added a commit to Azure/azure-sdk that referenced this pull request Sep 24, 2019
* 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.
bterlson pushed a commit to bterlson/azure-sdk that referenced this pull request Apr 16, 2020
* 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.
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.

Unify argument validation across .NET clients
3 participants