< Summary

Information
Class: Elsa.Workflows.Runtime.Features.CachingWorkflowRuntimeFeature
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Features/CachingWorkflowRuntimeFeature.cs
Line coverage
100%
Covered lines: 10
Uncovered lines: 0
Coverable lines: 10
Total lines: 33
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
.ctor(...)100%11100%
Apply()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Features/CachingWorkflowRuntimeFeature.cs

#LineLine coverage
 1using Elsa.Caching.Features;
 2using Elsa.Features.Abstractions;
 3using Elsa.Features.Attributes;
 4using Elsa.Features.Services;
 5using Elsa.Workflows.Runtime.Handlers;
 6using Elsa.Workflows.Runtime.Stores;
 7using Microsoft.Extensions.DependencyInjection;
 8
 9namespace Elsa.Workflows.Runtime.Features;
 10
 11/// <summary>
 12/// Installs and configures workflow runtime caching features.
 13/// </summary>
 14[DependsOn(typeof(MemoryCacheFeature))]
 15public class CachingWorkflowRuntimeFeature : FeatureBase
 16{
 17    /// <inheritdoc />
 118    public CachingWorkflowRuntimeFeature(IModule module) : base(module)
 19    {
 120    }
 21
 22    /// <inheritdoc />
 23    public override void Apply()
 24    {
 125        Services
 126            // Decorators.
 127            .Decorate<ITriggerStore, CachingTriggerStore>()
 128
 129            // Handlers.
 130            .AddNotificationHandler<InvalidateTriggersCache>()
 131            .AddNotificationHandler<InvalidateWorkflowsCache>();
 132    }
 33}