< Summary

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

File(s)

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

#LineLine coverage
 1using Medallion.Threading;
 2
 3namespace Elsa.Common.DistributedHosting.DistributedLocks;
 4
 5/// <summary>
 6/// Represents a no-op implementation of the IDistributedLockProvider interface.
 7/// </summary>
 8public class NoopDistributedSynchronizationProvider : IDistributedLockProvider
 9{
 10    /// <inheritdoc />
 11    public IDistributedLock CreateLock(string name)
 12    {
 013        return new NoopDistributedLock();
 14    }
 15}

Methods/Properties

CreateLock(System.String)