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); } }
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); } }
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); } }