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

loresoft / MediatR.CommandQuery / 11418431610

19 Oct 2024 02:43PM UTC coverage: 58.337% (+0.9%) from 57.424%
11418431610

push

github

pwelter34
add HybridCache, misc refactors

331 of 675 branches covered (49.04%)

Branch coverage included in aggregate %.

28 of 176 new or added lines in 24 files covered. (15.91%)

156 existing lines in 33 files now uncovered.

1163 of 1886 relevant lines covered (61.66%)

19.49 hits per line

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

31.25
/src/MediatR.CommandQuery/Queries/EntitySelectQuery.cs
1
using System.Security.Claims;
2

3
using MediatR.CommandQuery.Services;
4

5
namespace MediatR.CommandQuery.Queries;
6

7
public record EntitySelectQuery<TReadModel> : CacheableQueryBase<IReadOnlyCollection<TReadModel>>
8
{
9
    public EntitySelectQuery(ClaimsPrincipal? principal)
10
        : this(principal, new EntitySelect())
×
11
    {
12
    }
×
13

14
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter)
15
        : this(principal, new EntitySelect(filter))
×
16
    {
17
    }
×
18

19
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter, EntitySort sort)
NEW
20
        : this(principal, filter, [sort])
×
21
    {
22
    }
×
23

24
    public EntitySelectQuery(ClaimsPrincipal? principal, EntityFilter filter, IEnumerable<EntitySort> sort)
25
        : this(principal, new EntitySelect(filter, sort))
×
26
    {
27

28
    }
×
29

30
    public EntitySelectQuery(ClaimsPrincipal? principal, EntitySelect select)
31
        : base(principal)
12✔
32
    {
33
        Select = select ?? new EntitySelect();
12!
34
    }
12✔
35

36
    public EntitySelect Select { get; }
72✔
37

38

39
    public override string GetCacheKey()
NEW
40
        => CacheTagger.GetKey<TReadModel, int>(CacheTagger.Buckets.List, Select.GetHashCode());
×
41

42
    public override string? GetCacheTag()
NEW
43
        => CacheTagger.GetTag<TReadModel>();
×
44
}
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