< Summary

Information
Class: Elsa.Common.DistributedHosting.DistributedLocks.NoopDistributedSynchronizationHandle
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/DistributedHosting/DistributedLocks/Noop/NoopDistributedSynchronizationHandle.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 3
Coverable lines: 3
Total lines: 24
Line coverage: 0%
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
Dispose()100%210%
DisposeAsync()100%210%
get_HandleLostToken()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/DistributedHosting/DistributedLocks/Noop/NoopDistributedSynchronizationHandle.cs

#LineLine coverage
 1using Medallion.Threading;
 2
 3namespace Elsa.Common.DistributedHosting.DistributedLocks;
 4
 5/// <summary>
 6/// Represents a Noop distributed synchronization handle. This handle is used in the NoopDistributedLock implementation
 7/// to provide a no-operation implementation of the IDistributedSynchronizationHandle interface.
 8/// </summary>
 9public class NoopDistributedSynchronizationHandle : IDistributedSynchronizationHandle
 10{
 11    /// <inheritdoc />
 12    public void Dispose()
 13    {
 014    }
 15
 16    /// <inheritdoc />
 17    public ValueTask DisposeAsync()
 18    {
 019        return new ValueTask();
 20    }
 21
 22    /// <inheritdoc />
 023    public CancellationToken HandleLostToken { get; }
 24}