// Token: 0x06000987 RID: 2439 RVA: 0x0003FE34 File Offset: 0x0003E034 private static void NotificationStillEnabled(UserSettings settings, InfoFromUserMailboxSession info) { try { ExDateTime userNow = settings.TimeZone.ExTimeZone.ConvertDateTime(ExDateTime.Now); MailboxData mailboxData = MailboxData.CreateFromUserSettings(settings, info); if (mailboxData != null) { try { MailboxData fromCache = MailboxData.GetFromCache(mailboxData.MailboxGuid); if (fromCache == null) { CalendarNotificationInitiator.EnableUser(ref mailboxData, userNow); return; } if (Utils.AreInterestedFieldsEqual(mailboxData.Settings, fromCache.Settings)) { return; } using (fromCache.CreateReadLock()) { using (fromCache.Actions.SyncObj.CreateWriteLock()) { CalendarNotificationInitiator.StopEmittingReminder(fromCache); CalendarNotificationInitiator.StopEmittingSummary(fromCache); } } CalendarNotificationInitiator.UpdateCacheAndInitiateEmittings(ref mailboxData, userNow); } finally { if (mailboxData != null) { mailboxData.Dispose(); mailboxData = null; } } } ExTraceGlobals.AssistantTracer.TraceDebug <string>((long)typeof(CalendarNotificationInitiator).GetHashCode(), "notif changed, user: {0}", settings.LegacyDN); } catch (Exception ex) { if (!CalendarNotificationAssistant.TryHandleException((long)typeof(CalendarNotificationInitiator).GetHashCode(), "handling changing", settings.LegacyDN, ex)) { throw; } } }
// Token: 0x06000982 RID: 2434 RVA: 0x0003FC73 File Offset: 0x0003DE73 public static void ResetEmittingSummary(ExDateTime now, MailboxData mailboxData) { CalendarNotificationInitiator.StopEmittingSummary(mailboxData); CalendarNotificationInitiator.InitiateEmittingSummary(now, mailboxData); }