-
Notifications
You must be signed in to change notification settings - Fork 20
feat(api): Decision Notification Listener for activate and getVariation APIs. #148
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
Conversation
<Compile Include="..\OptimizelySDK\Utils\ExperimentUtils.cs" /> | ||
<Compile Include="..\OptimizelySDK\Utils\ConditionParser.cs" /> | ||
<Compile Include="..\OptimizelySDK\Utils\AttributeMatchTypes.cs" /> | ||
<Compile Include="..\OptimizelySDK\Utils\ControlAttributes.cs" /> |
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.
Please indent.
Why all these files are included in .netstandard16? Not in other Projects?
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, just have some minor comments
{ "variationKey", variation?.Key }, | ||
}; | ||
|
||
NotificationCenter.SendNotifications(NotificationCenter.NotificationType.Decision, DecisionInfoTypes.EXPERIMENT, userId, |
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.
nit: maybe initialize userAttributes as an empty UserAttributes
object before calling sendNotification
@@ -59,6 +60,15 @@ public enum NotificationType | |||
public delegate void TrackCallback(string eventKey, string userId, UserAttributes userAttributes, EventTags eventTags, | |||
LogEvent logEvent); | |||
|
|||
/// <summary> | |||
/// Delegate for decision notifcations. |
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.
nit: typo notifications
@mfahadahmed @msohailhussain just minor feedback from Mike. |
Summary
Test plan