< Summary

Information
Class: Elsa.Workflows.WorkflowInstantiationStrategyContext
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IWorkflowActivationStrategy.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
get_Workflow()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Contracts/IWorkflowActivationStrategy.cs

#LineLine coverage
 1using Elsa.Workflows.Activities;
 2
 3namespace Elsa.Workflows;
 4
 5/// <summary>
 6/// A workflow activation validator controls whether new instances are allowed to be created given certain conditions.
 7/// </summary>
 8public interface IWorkflowActivationStrategy
 9{
 10    /// <summary>
 11    /// Returns true if a new workflow instance should be created, false otherwise.
 12    /// </summary>
 13    ValueTask<bool> GetAllowActivationAsync(WorkflowInstantiationStrategyContext context);
 14}
 15
 16/// <summary>
 17/// Provides context about the request for allowing the creation of a new workflow instance.
 18/// </summary>
 019public record WorkflowInstantiationStrategyContext(Workflow Workflow, string? CorrelationId, CancellationToken Cancellat

Methods/Properties

get_Workflow()