• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / MediatR.CommandQuery / 14096184797

27 Mar 2025 12:31AM UTC coverage: 59.379% (-0.02%) from 59.397%
14096184797

push

github

pwelter34
Continuation fixes

495 of 971 branches covered (50.98%)

Branch coverage included in aggregate %.

0 of 3 new or added lines in 1 file covered. (0.0%)

1474 of 2345 relevant lines covered (62.86%)

22.56 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/MediatR.CommandQuery/Queries/EntityContinuationQuery.cs
1
using System.Security.Claims;
2
using System.Text.Json.Serialization;
3

4
using MediatR.CommandQuery.Services;
5

6
namespace MediatR.CommandQuery.Queries;
7

8
public record EntityContinuationQuery<TReadModel> : CacheableQueryBase<EntityContinuationResult<TReadModel>>
9
{
10
    public EntityContinuationQuery(ClaimsPrincipal? principal, EntitySelect? query, int pageSize = 10, string? continuationToken = null)
11
        : base(principal)
×
12
    {
13
        Query = query ?? new EntitySelect();
×
NEW
14
        PageSize = pageSize;
×
15
        ContinuationToken = continuationToken;
×
16
    }
×
17

18
    [JsonPropertyName("query")]
19
    public EntitySelect Query { get; }
×
20

21
    [JsonPropertyName("pageSize")]
NEW
22
    public int PageSize { get; }
×
23

24
    [JsonPropertyName("continuationToken")]
25
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
26
    public string? ContinuationToken { get; }
×
27

28
    public override string GetCacheKey()
29
        => CacheTagger.GetKey<TReadModel, int>
×
30
        (
×
31
            bucket: CacheTagger.Buckets.Continuation,
×
NEW
32
            value: HashCode.Combine(Query.GetHashCode(), PageSize, ContinuationToken)
×
33
        );
×
34

35
    public override string? GetCacheTag()
36
        => CacheTagger.GetTag<TReadModel>();
×
37
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc