< Summary

Information
Class: Elsa.Workflows.Attributes.TaskActivityAttribute
Assembly: Elsa.Workflows.Core
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/TaskActivityAttribute.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
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
.ctor()100%210%
.ctor(...)100%210%
get_RunAsynchronously()100%210%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Core/Attributes/TaskActivityAttribute.cs

#LineLine coverage
 1namespace Elsa.Workflows.Attributes;
 2
 3[AttributeUsage(AttributeTargets.Class)]
 4public class TaskActivityAttribute : ActivityAttribute
 5{
 06    public TaskActivityAttribute()
 7    {
 08        Kind = ActivityKind.Task;
 09    }
 10
 11    public TaskActivityAttribute(string @namespace, string? category, string? description = null, bool runAsynchronously
 012        : base(@namespace, category, description)
 13    {
 014        Kind = ActivityKind.Task;
 015        RunAsynchronously = runAsynchronously;
 016    }
 17
 018    public bool RunAsynchronously { get; set; }
 19}