private void SendSyncNowNotification(IConnectedAccountsNotificationManager notificationManager) { if (this.isOWALogon) { notificationManager.SendLogonTriggeredSyncNowRequest(); ExTraceGlobals.ConnectedAccountsTracer.TraceDebug((long)this.GetHashCode(), "ConnectedAccountsNotification.SendSyncNowNotification - ConnectedAccountsNotificationManager was setup and SendLogonTriggeredSyncNowRequest invoked."); return; } notificationManager.SendRefreshButtonTriggeredSyncNowRequest(); ExTraceGlobals.ConnectedAccountsTracer.TraceDebug((long)this.GetHashCode(), "ConnectedAccountsNotification.SendSyncNowNotification - ConnectedAccountsNotificationManager is setup and SendRefreshButtonTriggeredSyncNowRequest invoked."); }
internal void SetupMrsNotificationManager(MailboxSession mailboxSession) { if (!VariantConfiguration.InvariantNoFlightingSnapshot.OwaDeployment.MrsConnectedAccountsSync.Enabled || !ConnectedAccountsConfiguration.Instance.NotificationsEnabled) { ExTraceGlobals.ConnectedAccountsTracer.TraceDebug((long)this.GetHashCode(), "UserContext.SetupMrsNotificationManager - ConnectedAccountsNotificationManager was not set because no DC or Notifications not enabled."); return; } IConnectedAccountsNotificationManager connectedAccountsNotificationManager = MrsConnectedAccountsNotificationManager.Create(mailboxSession, this); if (connectedAccountsNotificationManager != null) { this.connectedAccountNotificationManagers.Add(connectedAccountsNotificationManager); } }