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

[PrivacyPrivilegeManager] ResponseFetched Event was not fired #466

Closed
myroot opened this issue Sep 14, 2018 · 3 comments
Closed

[PrivacyPrivilegeManager] ResponseFetched Event was not fired #466

myroot opened this issue Sep 14, 2018 · 3 comments
Assignees

Comments

@myroot
Copy link
Contributor

myroot commented Sep 14, 2018

 static ResponseContext context = null;
 PrivacyPrivilegeManager.GetResponseContext("some privilege").TryGetTarget(out context);
 context.ResponseFetched += some_handler;
 context.ResponseFetched -= some_handler; // context was removed from s_responseMap
 context.ResponseFetched += some_handler;  // It will not fired when Response was fetched
@xerrni
Copy link
Member

xerrni commented Sep 25, 2018

@myroot
Please check my fix in #457 Pull Request

@myroot
Copy link
Contributor Author

myroot commented Sep 26, 2018

Not yet fixed

 static ResponseContext context = null;
 PrivacyPrivilegeManager.GetResponseContext("some privilege").TryGetTarget(out context);
 context.ResponseFetched += some_handler;
 context.ResponseFetched -= some_handler; // context was removed from s_responseMap
 PrivacyPrivilegeManager.GetResponseContext("some privilege"); // a new context was created and added in s_responseMap
 context.ResponseFetched += some_handler;  // It will not fired when Response was fetched

@xerrni
Copy link
Member

xerrni commented Sep 27, 2018

@myroot
Please check current version.
I fixed issue mentioned in comment above.

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

No branches or pull requests

2 participants