// Token: 0x060023D3 RID: 9171 RVA: 0x000CE798 File Offset: 0x000CC998 protected override void SubscribeForFolderContentChanges() { OwaStoreObjectId owaStoreObjectId = OwaStoreObjectId.CreateFromSessionFolderId(base.UserContext, this.contextFolder.Session, this.contextFolder.Id.ObjectId); if (OwaMapiNotificationManager.IsNotificationEnabled(base.UserContext) && !Utilities.IsPublic(this.contextFolder)) { OwaStoreObjectId dataFolderId = OwaStoreObjectId.CreateFromSessionFolderId(base.UserContext, this.dataFolder.Session, this.dataFolder.Id.ObjectId); if (base.UserContext.IsPushNotificationsEnabled) { MailboxSession mailboxSession = this.contextFolder.Session as MailboxSession; if (mailboxSession != null) { Dictionary <PropertyDefinition, int> propertyMap = null; ExchangeListViewDataSource exchangeListViewDataSource = (ExchangeListViewDataSource)base.Contents.DataSource; PropertyDefinition[] requestedProperties = exchangeListViewDataSource.GetRequestedProperties(true, ref propertyMap); if (this.ShouldSubscribeForFolderContentChanges) { base.UserContext.MapiNotificationManager.SubscribeForFolderContentChanges(mailboxSession, owaStoreObjectId, dataFolderId, exchangeListViewDataSource.QueryResult, this.CreateListViewContents(), requestedProperties, propertyMap, this.GetSortByProperties(), this.folderFilter, this.IsConversationView); } else { base.UserContext.MapiNotificationManager.SubscribeForFolderChanges(owaStoreObjectId, mailboxSession); } } } } if (base.UserContext.IsPullNotificationsEnabled) { Dictionary <OwaStoreObjectId, OwaConditionAdvisor> conditionAdvisorTable = base.UserContext.NotificationManager.ConditionAdvisorTable; if (conditionAdvisorTable == null || !conditionAdvisorTable.ContainsKey(owaStoreObjectId)) { base.UserContext.NotificationManager.CreateOwaConditionAdvisor(base.UserContext, this.contextFolder.Session as MailboxSession, owaStoreObjectId, EventObjectType.None, EventType.None); } } }
// Token: 0x060023D4 RID: 9172 RVA: 0x000CE900 File Offset: 0x000CCB00 internal override void UnSubscribeForFolderContentChanges() { if (OwaMapiNotificationManager.IsNotificationEnabled(base.UserContext) && !Utilities.IsPublic(this.contextFolder)) { OwaStoreObjectId folderId = OwaStoreObjectId.CreateFromSessionFolderId(base.UserContext, this.contextFolder.Session, this.contextFolder.Id.ObjectId); if (base.UserContext.IsPushNotificationsEnabled) { base.UserContext.MapiNotificationManager.UnsubscribeFolderContentChanges(folderId); } } }