Skip to content

Conversation

SameerK-MSFT
Copy link
Contributor

No description provided.

@SameerK-MSFT SameerK-MSFT self-assigned this Sep 2, 2022
@SameerK-MSFT SameerK-MSFT marked this pull request as draft September 2, 2022 23:21
/// </returns>
public bool OnReceive(IMAMNotification notification)
{
Debug.WriteLine("***Begin EnrollmentNotificationReceiver -> OnReceive");
Copy link
Contributor

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(() =>
Copy link
Contributor

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.

/// </returns>
public bool OnReceive(IMAMNotification notification)
{
Debug.WriteLine("***Begin EnrollmentNotificationReceiver -> OnReceive");
Copy link
Contributor

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.

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

Successfully merging this pull request may close these issues.

3 participants