< 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: 35
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.Caching.ShellFeatures;
 3using Elsa.Workflows.Runtime.Handlers;
 4using Elsa.Workflows.Runtime.Stores;
 5using Elsa.Platform.PackageManifest.Generator.Hints;
 6using JetBrains.Annotations;
 7using Microsoft.Extensions.DependencyInjection;
 8
 9namespace Elsa.Workflows.Runtime.ShellFeatures;
 10
 11/// <summary>
 12/// Installs and configures workflow runtime caching features.
 13/// </summary>
 14[ManifestFeatureCategory("Workflows")]
 15[ManifestFeatureCategory("Caching")]
 16[ShellFeature(
 17    DisplayName = "Caching Workflow Runtime",
 18    Description = "Provides caching for workflow runtime operations",
 19    DependsOn = [typeof(MemoryCacheFeature), typeof(WorkflowRuntimeFeature)])]
 20[UsedImplicitly]
 21public class CachingWorkflowRuntimeFeature : IShellFeature
 22{
 23    public void ConfigureServices(IServiceCollection services)
 24    {
 025        services
 026            // Decorators.
 027            .Decorate<ITriggerStore, CachingTriggerStore>()
 028
 029            // Handlers.
 030            .AddNotificationHandler<InvalidateTriggersCache>()
 031            .AddNotificationHandler<InvalidateWorkflowsCache>();
 032    }
 33}
 34
 35