• 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

71.43
/src/MediatR.CommandQuery/Queries/EntityIdentifierQuery.cs
1
using System.Diagnostics.CodeAnalysis;
2
using System.Security.Claims;
3

4
using MediatR.CommandQuery.Services;
5

6
namespace MediatR.CommandQuery.Queries;
7

8
public record EntityIdentifierQuery<TKey, TReadModel> : CacheableQueryBase<TReadModel>
9
{
10

11
    public EntityIdentifierQuery(ClaimsPrincipal? principal, [NotNull] TKey id)
12
        : base(principal)
24✔
13
    {
14
        ArgumentNullException.ThrowIfNull(id);
24✔
15

16
        Id = id;
24✔
17
    }
24✔
18

19
    [NotNull]
20
    public TKey Id { get; }
24✔
21

22

23
    public override string GetCacheKey()
NEW
24
        => CacheTagger.GetKey<TReadModel, TKey>(CacheTagger.Buckets.Identifier, Id);
×
25

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