< Summary

Information
Class: Elsa.Connections.Contracts.ConnectionDueCandidatePage
Assembly: Elsa.Connections
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Contracts/IConnectionDueCandidateStore.cs
Line coverage
100%
Covered lines: 1
Uncovered lines: 0
Coverable lines: 1
Total lines: 21
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
get_Items()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Contracts/IConnectionDueCandidateStore.cs

#LineLine coverage
 1using Elsa.Connections.Models;
 2
 3namespace Elsa.Connections.Contracts;
 4
 5/// <summary>Queries bounded, scoped, nonsecret pointers to due lifecycle work.</summary>
 6public interface IConnectionDueCandidateStore
 7{
 8    /// <summary>
 9    /// Returns at most <paramref name="pageSize"/> candidates due at or before <paramref name="now"/>.
 10    /// Null credential metadata on preexisting rows is intentionally excluded from OAuth scheduling; those rows require
 11    /// </summary>
 12    Task<ConnectionDueCandidatePage> FindDueCandidatesAsync(
 13        string tenantId,
 14        string environmentId,
 15        DateTimeOffset now,
 16        int pageSize,
 17        string? cursor = null,
 18        CancellationToken cancellationToken = default);
 19}
 20
 396821public sealed record ConnectionDueCandidatePage(IReadOnlyList<ConnectionDueCandidate> Items, string? NextCursor);

Methods/Properties

get_Items()