Skip to content

Commit 9bb32ae

Browse files
committed
Refactor BackgroundWorkflowCancellationDispatcher to simplify object initialization and clean up XML documentation comments
1 parent 4c8f741 commit 9bb32ae

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/modules/Elsa.Workflows.Runtime/Services/BackgroundWorkflowCancellationDispatcher.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
namespace Elsa.Workflows.Runtime;
1010

1111
/// <summary>
12-
/// Dispatches workflow cancellation requests to a local background worker.
12+
/// Dispatches workflow cancellation requests to a local background worker.
1313
/// </summary>
1414
public class BackgroundWorkflowCancellationDispatcher(ICommandSender commandSender, ITenantAccessor tenantAccessor) : IWorkflowCancellationDispatcher
1515
{
@@ -18,7 +18,7 @@ public async Task<DispatchCancelWorkflowsResponse> DispatchAsync(DispatchCancelW
1818
{
1919
var command = new CancelWorkflowsCommand(request);
2020
await commandSender.SendAsync(command, CommandStrategy.Background, CreateHeaders(), cancellationToken);
21-
return new DispatchCancelWorkflowsResponse();
21+
return new();
2222
}
2323

2424
private IDictionary<object, object> CreateHeaders()

0 commit comments

Comments
 (0)