Samsung / TizenFX

C# Device APIs for Tizen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[PrivacyPrivilegeManager] ResponseFetched Event was not fired

myroot opened this issue · comments

 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

@myroot
Please check my fix in #457 Pull Request

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

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