-
Notifications
You must be signed in to change notification settings - Fork 75
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
Using Remapper in Android #204
base: main
Are you sure you want to change the base?
Conversation
@@ -28,16 +30,34 @@ class EnrollmentNotificationReceiver : Java.Lang.Object, IMAMNotificationReceive | |||
/// </returns> | |||
public bool OnReceive(IMAMNotification notification) | |||
{ | |||
Debug.WriteLine("***Begin EnrollmentNotificationReceiver -> OnReceive"); |
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.
maybe log the notification type from the start.
IMAMComplianceManager mgr = MAMComponents.Get<IMAMComplianceManager>(); | ||
mgr.RemediateCompliance(exProtection.Upn, exProtection.AccountUserId, exProtection.TenantId, exProtection.AuthorityUrl, false); | ||
}).ConfigureAwait(false); | ||
await Task.Run(() => |
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 add a comment explaining why you do this on a background thread.
@@ -28,16 +30,34 @@ class EnrollmentNotificationReceiver : Java.Lang.Object, IMAMNotificationReceive | |||
/// </returns> | |||
public bool OnReceive(IMAMNotification notification) | |||
{ | |||
Debug.WriteLine("***Begin EnrollmentNotificationReceiver -> OnReceive"); |
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.
Why is the remapper needed? Is it only for CITI scenario? If so, since this is a public sample, can we put these changes into a dev app to not clutter the sample? Otherwise, I would clarify what the remapper does.
Similarly to the above, these log messages make it less clear on what's going on with the code.
No description provided.