< Summary

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

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Commands/CancelWorkflowsCommand.cs

#LineLine coverage
 1using Elsa.Mediator.Contracts;
 2using Elsa.Workflows.Runtime.Requests;
 3
 4namespace Elsa.Workflows.Runtime.Commands;
 5
 6/// <summary>
 7/// Sends a command to cancel workflows.
 8/// </summary>
 9public class CancelWorkflowsCommand : ICommand
 10{
 11    /// <summary>
 12    /// Initializes a new instance of the <see cref="CancelWorkflowsCommand"/> class.
 13    /// </summary>
 014    public CancelWorkflowsCommand()
 15    {
 016    }
 17
 18    /// <summary>
 19    /// Initializes a new instance of the <see cref="CancelWorkflowsCommand"/> class.
 20    /// </summary>
 021    public CancelWorkflowsCommand(DispatchCancelWorkflowRequest request)
 22    {
 023        Request = request;
 024    }
 25
 26    /// <summary>
 27    /// Gets or sets the request.
 28    /// </summary>
 029    public DispatchCancelWorkflowRequest Request { get; set; } = default!;
 30}