Exemple #1
0
        // Token: 0x06000F03 RID: 3843 RVA: 0x0003A740 File Offset: 0x00038940
        protected override void ProcessQueryResultChangedNotification()
        {
            ExTraceGlobals.PeopleIKnowNotificationsTracer.TraceDebug <string>((long)this.GetHashCode(), "[PeopleIKnowRowNotificationHandler.ProcessQueryResultChangedNotification] SubscriptionId: {0}", base.SubscriptionId);
            PeopleIKnowRowNotificationPayload queryResultChangedPayload = this.GetQueryResultChangedPayload(QueryNotificationType.QueryResultChanged);

            base.Notifier.AddFolderContentChangePayload(base.FolderId, queryResultChangedPayload);
        }
Exemple #2
0
        // Token: 0x06000F04 RID: 3844 RVA: 0x0003A784 File Offset: 0x00038984
        protected override void ProcessReloadNotification()
        {
            ExTraceGlobals.PeopleIKnowNotificationsTracer.TraceDebug <string>((long)this.GetHashCode(), "[PeopleIKnowRowNotificationHandler.ProcessReloadNotification] SubscriptionId: {0}", base.SubscriptionId);
            PeopleIKnowRowNotificationPayload emptyPayload = this.GetEmptyPayload();

            emptyPayload.EventType = QueryNotificationType.Reload;
            base.Notifier.AddFolderContentChangePayload(base.FolderId, emptyPayload);
        }
Exemple #3
0
        // Token: 0x06000F05 RID: 3845 RVA: 0x0003A7D0 File Offset: 0x000389D0
        private PeopleIKnowRowNotificationPayload GetQueryResultChangedPayload(QueryNotificationType queryNotificationType)
        {
            PeopleIKnowRowNotificationPayload emptyPayload = this.GetEmptyPayload();

            emptyPayload.EventType = queryNotificationType;
            this.SetPayloadOnQueryResultChangedNotification(emptyPayload);
            return(emptyPayload);
        }
Exemple #4
0
        // Token: 0x06000F01 RID: 3841 RVA: 0x0003A698 File Offset: 0x00038898
        private PeopleIKnowRowNotificationPayload GetRowNotificationPayload(QueryNotification notification)
        {
            PeopleIKnowRowNotificationPayload emptyPayload = this.GetEmptyPayload();

            emptyPayload.EventType          = notification.EventType;
            emptyPayload.PersonaEmailAdress = RowNotificationHandler.GetItemProperty <string>(notification, Array.IndexOf <PropertyDefinition>(this.SubscriptionProperties, MessageItemSchema.SenderSmtpAddress));
            emptyPayload.PersonaUnreadCount = RowNotificationHandler.GetItemProperty <int>(notification, Array.IndexOf <PropertyDefinition>(this.SubscriptionProperties, FolderSchema.UnreadCount));
            emptyPayload.Source             = new MailboxLocation(base.MailboxGuid);
            return(emptyPayload);
        }
Exemple #5
0
 // Token: 0x06000F07 RID: 3847 RVA: 0x0003A878 File Offset: 0x00038A78
 protected virtual void SetPayloadOnQueryResultChangedNotification(PeopleIKnowRowNotificationPayload payload)
 {
     SimulatedWebRequestContext.Execute(base.UserContext, "PeopleIKnowRowNotification", delegate(MailboxSession mailboxSession, IRecipientSession adSession, RequestDetailsLogger logger)
     {
         FindPeopleParameters parameters = this.CreateFindPeopleParameters(logger);
         BrowsePeopleInMailFolder browsePeopleInMailFolder = new BrowsePeopleInMailFolder(parameters, mailboxSession, mailboxSession.GetDefaultFolderId(DefaultFolderType.FromFavoriteSenders), NullTracer.Instance);
         FindPeopleResult findPeopleResult = browsePeopleInMailFolder.Execute();
         payload.Personas = findPeopleResult.PersonaList;
     });
 }