8000 feat: Fix NotificationCenter Issue for ODPManager by mikechu-optimizely · Pull Request #324 · optimizely/csharp-sdk · GitHub
[go: up one dir, main page]

Skip to content

feat: Fix NotificationCenter Issue for ODPManager #324

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

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Last PR change request
  • Loading branch information
mikechu-optimizely committed Jan 18, 2023
commit 9dd3d6993f6a11d870f6e9d471f5f3b573f70cf9
5 changes: 2 additions & 3 deletions OptimizelySDK/Config/HttpProjectConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -414,14 +414,13 @@ public HttpProjectConfigManager Build(bool defer)

configManager.NotifyOnProjectConfigUpdate += () =>
{
NotificationCenter?.SendNotifications(NotificationCenter.NotificationType.
OptimizelyConfigUpdate);

#if USE_ODP
Copy link
Contributor

Choose a reason for hiding this comment

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

Please bring this code first and then notify to user notification.

NotificationCenterRegistry.GetNotificationCenter(SdkKey).
SendNotifications(
NotificationCenter.NotificationType.OptimizelyConfigUpdate);
#endif
NotificationCenter?.SendNotifications(NotificationCenter.NotificationType.
OptimizelyConfigUpdate);
};


Expand Down
0