elsa-core/src/modules/Elsa.Workflows.Core/Models
Sipke Schoorstra 66af304364
Optimize activity registry descriptor lookup (#7538)
* Optimize activity registry lookup

Add a latest-version descriptor index per tenant registry so ActivityRegistry.Find(type) can avoid scanning every registered descriptor. Keep the index in sync when descriptors are added, removed, refreshed, or cleared.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Handle provider descriptor removal during refresh

Remove descriptors from registries that a refreshed provider no longer contributes to keep descriptor indexes consistent when a provider drops a tenant group entirely.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Address activity registry review feedback

* Clear manual activity descriptors

* Integrate ConsoleLogStreaming.Core and ConsoleLogStreaming.SignalR packages; refine activity registry lookup logic.

* Reduce activity registry refresh allocations

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-05-31 13:15:42 +02:00
..
ActivityConstructionResult.cs Bugfix: error thrown in ReadSyntheticInputs 2026-01-20 13:27:55 +01:00
ActivityConstructorContext.cs Removing unused variables 2026-01-20 13:36:45 +01:00
ActivityDescriptor.cs Implement null TenantId for tenant-agnostic entities (#7226) 2026-02-02 10:59:01 +01:00
ActivityHandle.cs Add HealActivity alteration and handler with workflow fault recovery support 2025-06-13 20:35:19 +02:00
ActivityIncident.cs Extended the incidents data to include the activityNodeId (#6570) (#6572) 2025-04-10 14:10:56 +02:00
ActivityNode.cs Refactor workflow context and execution handling. 2025-01-20 17:44:31 +01:00
ActivityOutputRecord.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ActivityOutputRegister.cs Fix activity output 2025-01-30 22:56:30 +01:00
ActivityOutputs.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
ActivityPort.cs Fix all broken summary xml docs (#6123) 2024-11-18 13:41:27 +01:00
ActivityStateFilterResult.cs Implement Activity State Filtering and JavaScript Integration (#5993) 2024-10-02 09:11:35 +02:00
ActivityWorkItem.cs Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
Argument.cs Update nullable argument defaults and enhance ForEach tests with additional edge cases. (#6928) 2025-09-27 17:55:40 +02:00
ArgumentDefinition.cs Add ExecuteWorkflow activity (#6134) 2024-11-21 16:44:25 +01:00
BackgroundExecutionOutcome.cs Add background execution to activities and update HTTP requests 2024-01-05 21:22:18 +01:00
BackgroundExecutionResult.cs Add background execution to activities and update HTTP requests 2024-01-05 21:22:18 +01:00
Bookmark.cs Adds activity host registration support (#7172) 2025-12-27 20:52:52 +01:00
BookmarkInfo.cs Refactor Workflow Runtimes (#5444) 2024-06-10 19:36:51 +02:00
ChangeTrackingDictionary.cs Refactor activity context management and state handling. 2025-01-28 20:24:53 +01:00
CreateBookmarkArgs.cs Fix all broken summary xml docs (#6123) 2024-11-18 13:41:27 +01:00
EventGenerator.cs Support for Writing Custom Trigger Activities Using Existing Trigger Infrastructure (#6527) 2025-03-21 23:16:56 +01:00
Input.cs Update nullable argument defaults and enhance ForEach tests with additional edge cases. (#6928) 2025-09-27 17:55:40 +02:00
InputDefinition.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
InputDescriptor.cs Remove duplicated EvaluatorType property from InputDescriptor. 2025-09-15 18:52:38 +02:00
InvokeWorkflowResult.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
MissingActivityType.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
NamedOutput.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
Output.cs Improves tenant task management with dependencies (#7174) 2025-12-29 20:49:24 +01:00
OutputDefinition.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
OutputDescriptor.cs Update namespaces and correct merge artefacts 2024-10-11 20:41:49 +02:00
Port.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
PortType.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
PropertyDescriptor.cs Optimize ActivityOutputRegister. 2025-01-21 19:52:30 +01:00
ResolvedVariable.cs Add services and API endpoints to read and write workflow instance variables (#6107) 2024-11-09 17:42:08 +01:00
RunWorkflowResult.cs Update nullable argument defaults and enhance ForEach tests with additional edge cases. (#6928) 2025-09-27 17:55:40 +02:00
ScheduledActivity.cs Add scheduling function for background activities 2024-01-05 22:27:56 +01:00
ScheduledActivityOptions.cs Adds activity execution call stack support (#7271) 2026-02-24 15:23:59 +01:00
SignalHandlerRegistration.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
TenantRegistryData.cs Optimize activity registry descriptor lookup (#7538) 2026-05-31 13:15:42 +02:00
TriggerType.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
TypeDescriptor.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
VariableDefinition.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
VariableModel.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
VariableUpdateValue.cs Add services and API endpoints to read and write workflow instance variables (#6107) 2024-11-09 17:42:08 +01:00
WorkflowDefinitionHandle.cs Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
WorkflowExecutionLogEntry.cs Fix typo in Obsolete attribute message 2024-02-04 10:47:03 +01:00
WorkflowExecutionLogEventNames.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
WorkflowExecutionMode.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
WorkflowExecutionState.cs Add WorkflowExecutionState to manage execution context state 2025-03-15 20:03:22 +01:00
WorkflowGraph.cs Implement Activity Testing API (#6719) 2025-06-23 10:03:10 +02:00
WorkflowIdentity.cs Multitenancy (#5159) 2024-06-10 21:30:53 +02:00
WorkflowInput.cs Rename ActivityInput to WorkflowInput and replace 'default' with 'null'. 2025-02-11 15:44:48 +01:00
WorkflowMetadata.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00
WorkflowOptions.cs Refactor commit state handling with a strategy-based approach 2025-01-30 11:59:47 +01:00
WorkflowPublication.cs Add a more generic UIHandler to customize how inputAttributes can be handle by UI (#4688) 2023-12-26 18:56:29 +01:00