-
Notifications
You must be signed in to change notification settings - Fork 526
Expand file tree
/
Copy pathCrossFeedRangePage.cs
More file actions
28 lines (22 loc) · 1.12 KB
/
CrossFeedRangePage.cs
File metadata and controls
28 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ------------------------------------------------------------
namespace Microsoft.Azure.Cosmos.Pagination
{
using System.Collections.Generic;
using System.Collections.Immutable;
internal sealed class CrossFeedRangePage<TBackendPage, TBackendState> : Page<CrossFeedRangeState<TBackendState>>
where TBackendPage : Page<TBackendState>
where TBackendState : State
{
private static readonly ImmutableHashSet<string> bannedHeaders = new HashSet<string>().ToImmutableHashSet();
public CrossFeedRangePage(TBackendPage backendEndPage, CrossFeedRangeState<TBackendState> state)
: base(backendEndPage.RequestCharge, backendEndPage.ActivityId, backendEndPage.AdditionalHeaders, state)
{
this.Page = backendEndPage;
}
public TBackendPage Page { get; }
public override int ItemCount => this.Page.ItemCount;
protected override ImmutableHashSet<string> DerivedClassBannedHeaders => bannedHeaders;
}
}