< Summary

Information
Class: Elsa.Common.TaskDependencyAttribute
Assembly: Elsa.Common
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Attributes/TaskDependencyAttribute.cs
Line coverage
100%
Covered lines: 2
Uncovered lines: 0
Coverable lines: 2
Total lines: 13
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%
get_DependencyTaskType()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Common/Attributes/TaskDependencyAttribute.cs

#LineLine coverage
 1namespace Elsa.Common;
 2
 3/// <summary>
 4/// Specifies dependencies for a task implementation. Tasks with dependencies will be executed after their dependencies 
 5/// </summary>
 6[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
 117public class TaskDependencyAttribute(Type dependencyTaskType) : Attribute
 8{
 9    /// <summary>
 10    /// The type of the task that must complete before this task can execute.
 11    /// </summary>
 2212    public Type DependencyTaskType { get; } = dependencyTaskType;
 13}