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

GlobalProvider setter should emit ProviderUpdated event for ProviderStateChanged #108

Merged
merged 2 commits into from
Jun 4, 2021

Conversation

shweaver-MSFT
Copy link
Member

Fixes #16

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Currently, when setting the ProviderManager.Instance.GlobalProvider to an instance if IProvider, the ProviderManager will emit a single ProviderUpdated event with the reason being ProviderManagerChangedState.ProviderChanged.

What is the new behavior?

With these changes, the ProviderManager will now emit a second ProviderUpdated event with the reason being ProviderManagerChangedState.ProviderStateChanged.

This will enable developers to more easily differentiate between changes to the GlobalProvider instance, versus changes in the ProviderState of the current GlobalProvider instance.

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tested code with current supported SDKs
  • Sample in sample app has been added / updated (for bug fixes / features)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Header has been added to all new source files (run build/UpdateHeaders.bat)
  • Contains NO breaking changes

Other information

@ghost
Copy link

ghost commented Jun 2, 2021

Thanks shweaver-MSFT for opening a Pull Request! The reviewers will test the PR and highlight if there is any merge conflict or changes required. If the PR is approved we will proceed to merge the pull request 🙌

@ghost ghost assigned michael-hawker Jun 2, 2021
@shweaver-MSFT
Copy link
Member Author

REMINDER: Don't forget to also cherry-pick this back into main

@shweaver-MSFT shweaver-MSFT merged commit e288c4a into dev/7.1.0 Jun 4, 2021
@shweaver-MSFT shweaver-MSFT deleted the shweaver/provider-updated branch June 4, 2021 18:32
shweaver-MSFT added a commit that referenced this pull request Jun 4, 2021
…tateChanged (#108)

* Emit ProviderStateChanged event from GlobalProvider setter

* Updated references to old pattern and removed some stale docs
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.

2 participants