< Summary

Information
Class: Elsa.Workflows.Runtime.ShellFeatures.CachingWorkflowRuntimeFeature
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/ShellFeatures/CachingWorkflowRuntimeFeature.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 31
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
ConfigureServices(...)100%210%

File(s)

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

#LineLine coverage
 1using CShells.Features;
 2using Elsa.Workflows.Runtime.Handlers;
 3using Elsa.Workflows.Runtime.Stores;
 4using JetBrains.Annotations;
 5using Microsoft.Extensions.DependencyInjection;
 6
 7namespace Elsa.Workflows.Runtime.ShellFeatures;
 8
 9/// <summary>
 10/// Installs and configures workflow runtime caching features.
 11/// </summary>
 12[ShellFeature(
 13    DisplayName = "Caching Workflow Runtime",
 14    Description = "Provides caching for workflow runtime operations",
 15    DependsOn = ["MemoryCache", "WorkflowRuntime"])]
 16[UsedImplicitly]
 17public class CachingWorkflowRuntimeFeature : IShellFeature
 18{
 19    public void ConfigureServices(IServiceCollection services)
 20    {
 021        services
 022            // Decorators.
 023            .Decorate<ITriggerStore, CachingTriggerStore>()
 024
 025            // Handlers.
 026            .AddNotificationHandler<InvalidateTriggersCache>()
 027            .AddNotificationHandler<InvalidateWorkflowsCache>();
 028    }
 29}
 30
 31