-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Made ActivityRegistryUpdateService provider specific
- Loading branch information
1 parent
90d9561
commit c0ee30b
Showing
7 changed files
with
62 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 0 additions & 32 deletions
32
src/modules/Elsa.Workflows.Core/Contracts/IActivityRegistryUpdateService.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...modules/Elsa.Workflows.Management/Contracts/IWorkflowDefinitionActivityRegistryUpdater.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
namespace Elsa.Workflows.Management.Contracts; | ||
|
||
/// <summary> | ||
/// Represents a service for updating the activity registry. | ||
/// </summary> | ||
public interface IWorkflowDefinitionActivityRegistryUpdater | ||
{ | ||
/// <summary> | ||
/// Tries to add a workflow as an activity to the registry. | ||
/// </summary> | ||
/// <param name="workflowDefinitionId">The ID of the workflow definition.</param> | ||
/// <param name="cancellationToken">The cancellation token.</param> | ||
Task AddToRegistry(string workflowDefinitionId, CancellationToken cancellationToken = default); | ||
|
||
/// <summary> | ||
/// Removes workflow definition activities from the <see cref="Elsa.Workflows.Contracts.IActivityRegistry"/>. | ||
/// </summary> | ||
/// <param name="workflowDefinitionId">The ID of the workflow definition to remove.</param> | ||
void RemoveDefinitionFromRegistry(string workflowDefinitionId); | ||
|
||
|
||
/// <summary> | ||
/// Removes a workflow definition version activity from the <see cref="Elsa.Workflows.Contracts.IActivityRegistry"/>. | ||
/// </summary> | ||
/// <param name="workflowDefinitionVersionId">The ID of the workflow definition to remove.</param> | ||
void RemoveDefinitionVersionFromRegistry(string workflowDefinitionVersionId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters