private void AddBookmarkSubscription(BookmarkResumptionQuery bookmarkTrackingQuery)
 {
     this.trackingRecordPreFilter.TrackBookmarkResumptionRecords = true;
     if (this.bookmarkSubscriptions == null)
     {
         this.bookmarkSubscriptions = new Dictionary <string, BookmarkResumptionQuery>();
     }
     if (!this.bookmarkSubscriptions.ContainsKey(bookmarkTrackingQuery.Name))
     {
         this.bookmarkSubscriptions.Add(bookmarkTrackingQuery.Name, bookmarkTrackingQuery);
     }
 }
Example #2
0
 private void AddBookmarkSubscription(BookmarkResumptionQuery bookmarkTrackingQuery)
 {
     this.trackingRecordPreFilter.TrackBookmarkResumptionRecords = true;
     if (this.bookmarkSubscriptions == null)
     {
         this.bookmarkSubscriptions = new Dictionary <string, BookmarkResumptionQuery>();
     }
     //if duplicates are found, use only the first subscription for a given bookmark name.
     if (!this.bookmarkSubscriptions.ContainsKey(bookmarkTrackingQuery.Name))
     {
         this.bookmarkSubscriptions.Add(bookmarkTrackingQuery.Name, bookmarkTrackingQuery);
     }
 }
Example #3
0
        private BookmarkResumptionQuery Match(BookmarkResumptionRecord bookmarkRecord)
        {
            BookmarkResumptionQuery trackingQuery = null;

            if (this.bookmarkSubscriptions != null)
            {
                if (bookmarkRecord.BookmarkName != null)
                {
                    this.bookmarkSubscriptions.TryGetValue(bookmarkRecord.BookmarkName, out trackingQuery);
                }
                if (trackingQuery == null)
                {
                    this.bookmarkSubscriptions.TryGetValue("*", out trackingQuery);
                }
            }
            return(trackingQuery);
        }
 private void AddBookmarkSubscription(BookmarkResumptionQuery bookmarkTrackingQuery)
 {
     this.trackingRecordPreFilter.TrackBookmarkResumptionRecords = true;
     if (this.bookmarkSubscriptions == null)
     {
         this.bookmarkSubscriptions = new Dictionary<string, BookmarkResumptionQuery>();
     }
     if (!this.bookmarkSubscriptions.ContainsKey(bookmarkTrackingQuery.Name))
     {
         this.bookmarkSubscriptions.Add(bookmarkTrackingQuery.Name, bookmarkTrackingQuery);
     }
 }
 void AddBookmarkSubscription(BookmarkResumptionQuery bookmarkTrackingQuery)
 {
     this.trackingRecordPreFilter.TrackBookmarkResumptionRecords = true;
     if (this.bookmarkSubscriptions == null)
     {
         this.bookmarkSubscriptions = new Dictionary<string, BookmarkResumptionQuery>();
     }
     //if duplicates are found, use only the first subscription for a given bookmark name.
     if (!this.bookmarkSubscriptions.ContainsKey(bookmarkTrackingQuery.Name))
     {
         this.bookmarkSubscriptions.Add(bookmarkTrackingQuery.Name, bookmarkTrackingQuery);
     }
 }