< Summary

Information
Class: Elsa.Extensions.ModuleExtensions
Assembly: Elsa.Caching
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Caching/Extensions/ModuleExtensions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 1
Coverable lines: 1
Total lines: 19
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
UseMemoryCache(...)100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Caching/Extensions/ModuleExtensions.cs

#LineLine coverage
 1using Elsa.Caching.Features;
 2using Elsa.Features.Services;
 3
 4// ReSharper disable once CheckNamespace
 5namespace Elsa.Extensions;
 6
 7/// <summary>
 8/// Provides methods to install and configure the distributed caching feature.
 9/// </summary>
 10public static class ModuleExtensions
 11{
 12    /// <summary>
 13    /// Adds the <see cref="MemoryCacheFeature"/> feature to the system.
 14    /// </summary>
 15    public static MemoryCacheFeature UseMemoryCache(this IModule module, Action<MemoryCacheFeature>? configure = default
 16    {
 017        return module.Configure(configure);
 18    }
 19}