< Summary

Information
Class: AsiBackbone.EntityFrameworkCore.CapabilityGrants.EfCoreCapabilityGrantUseStoreOptions
Assembly: AsiBackbone.EntityFrameworkCore
File(s): /home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.EntityFrameworkCore/CapabilityGrants/EfCoreCapabilityGrantUseStoreOptions.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 18
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
Validate()100%11100%

File(s)

/home/runner/work/AsiBackbone/AsiBackbone/src/AsiBackbone.EntityFrameworkCore/CapabilityGrants/EfCoreCapabilityGrantUseStoreOptions.cs

#LineLine coverage
 1namespace AsiBackbone.EntityFrameworkCore.CapabilityGrants;
 2
 3/// <summary>Configures durable capability-grant use storage.</summary>
 4public sealed class EfCoreCapabilityGrantUseStoreOptions
 5{
 6    /// <summary>Gets or sets the retention period after grant expiration.</summary>
 7    /// <remarks>Set this to at least the greatest clock skew used by any validator sharing this store.</remarks>
 8    public TimeSpan RetentionGracePeriod { get; set; } = TimeSpan.FromMinutes(5);
 9
 10    /// <summary>Gets or sets the number of retries for insert/update contention.</summary>
 11    public int ContentionRetryCount { get; set; } = 5;
 12
 13    internal void Validate()
 14    {
 415        ArgumentOutOfRangeException.ThrowIfLessThan(RetentionGracePeriod, TimeSpan.Zero);
 416        ArgumentOutOfRangeException.ThrowIfLessThan(ContentionRetryCount, 0);
 417    }
 18}

Methods/Properties

Validate()