コード例 #1
0
 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.");
 }
コード例 #2
0
ファイル: UserContext.cs プロジェクト: YHZX2013/exchange_diff
        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);
            }
        }