< Summary

Information
Class: Elsa.Connections.Models.ConnectionGenerationCleanup
Assembly: Elsa.Connections
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/ConnectionGenerationCleanup.cs
Line coverage
100%
Covered lines: 7
Uncovered lines: 0
Coverable lines: 7
Total lines: 22
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_ConnectionId()100%11100%
get_TenantId()100%11100%
get_EnvironmentId()100%11100%
get_GenerationId()100%11100%
get_Status()100%11100%
get_Fence()100%11100%
get_LeaseExpiresAt()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Connections/Models/ConnectionGenerationCleanup.cs

#LineLine coverage
 1namespace Elsa.Connections.Models;
 2
 3/// <summary>
 4/// Durable tombstone for a retired credential generation. Keeping the identity after deletion prevents a
 5/// generation from being staged or published again after cleanup.
 6/// </summary>
 7public sealed class ConnectionGenerationCleanup
 8{
 179    public string ConnectionId { get; set; } = default!;
 1710    public string TenantId { get; set; } = default!;
 1711    public string EnvironmentId { get; set; } = default!;
 1712    public string GenerationId { get; set; } = default!;
 2513    public ConnectionGenerationCleanupStatus Status { get; set; }
 2714    public long Fence { get; set; }
 1715    public DateTimeOffset? LeaseExpiresAt { get; set; }
 16}
 17
 18public enum ConnectionGenerationCleanupStatus
 19{
 20    Deleting,
 21    Deleted
 22}