Skip to content

Commit ad9e7c4

Browse files
committed
Rename UpdateConsumingWorkflows to UpdateReferencingWorkflows for clarity and alignment with functionality.
1 parent adbea90 commit ad9e7c4

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/modules/Elsa.Workflows.Management/Features/WorkflowManagementFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public override void Apply()
239239
Services
240240
.AddNotificationHandler<DeleteWorkflowInstances>()
241241
.AddNotificationHandler<RefreshActivityRegistry>()
242-
.AddNotificationHandler<UpdateConsumingWorkflows>()
242+
.AddNotificationHandler<UpdateReferencingWorkflows>()
243243
.AddNotificationHandler<ValidateWorkflow>()
244244
;
245245

src/modules/Elsa.Workflows.Management/Handlers/Notifications/UpdateConsumingWorkflows.cs renamed to src/modules/Elsa.Workflows.Management/Handlers/Notifications/UpdateReferencingWorkflows.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
using Elsa.Extensions;
22
using Elsa.Mediator.Contracts;
33
using Elsa.Workflows.Management.Notifications;
4+
using JetBrains.Annotations;
45

56
namespace Elsa.Workflows.Management.Handlers.Notifications;
67

78
/// <summary>
8-
/// Updates consuming workflows when a workflow definition is published.
9+
/// Updates referencing workflows when a workflow definition is published.
910
/// </summary>
10-
public class UpdateConsumingWorkflows(IWorkflowReferenceUpdater workflowReferenceUpdater) : INotificationHandler<WorkflowDefinitionPublished>
11+
[UsedImplicitly]
12+
public class UpdateReferencingWorkflows(IWorkflowReferenceUpdater workflowReferenceUpdater) : INotificationHandler<WorkflowDefinitionPublished>
1113
{
1214
/// <inheritdoc />
1315
public async Task HandleAsync(WorkflowDefinitionPublished notification, CancellationToken cancellationToken)

0 commit comments

Comments
 (0)