| | | 1 | | using Elsa.KeyValues.Contracts; |
| | | 2 | | using Elsa.KeyValues.Entities; |
| | | 3 | | using Elsa.Workflows.Runtime; |
| | | 4 | | using Elsa.Workflows.Runtime.Entities; |
| | | 5 | | using JetBrains.Annotations; |
| | | 6 | | using Microsoft.Extensions.DependencyInjection; |
| | | 7 | | |
| | | 8 | | namespace Elsa.Persistence.EFCore.Modules.Runtime; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Base class for workflow runtime persistence features. |
| | | 12 | | /// This is not a standalone shell feature - use provider-specific features. |
| | | 13 | | /// </summary> |
| | | 14 | | [UsedImplicitly] |
| | | 15 | | public abstract class EFCoreWorkflowRuntimePersistenceShellFeatureBase : PersistenceShellFeatureBase<RuntimeElsaDbContex |
| | | 16 | | { |
| | | 17 | | protected override void OnConfiguring(IServiceCollection services) |
| | | 18 | | { |
| | 0 | 19 | | services.AddScoped<ITriggerStore, EFCoreTriggerStore>(); |
| | 0 | 20 | | services.AddScoped<IBookmarkStore, EFCoreBookmarkStore>(); |
| | 0 | 21 | | services.AddScoped<IBookmarkQueueStore, EFBookmarkQueueStore>(); |
| | 0 | 22 | | services.AddScoped<IWorkflowExecutionLogStore, EFCoreWorkflowExecutionLogStore>(); |
| | 0 | 23 | | services.AddScoped<IActivityExecutionStore, EFCoreActivityExecutionStore>(); |
| | 0 | 24 | | services.AddScoped<IKeyValueStore, EFCoreKeyValueStore>(); |
| | | 25 | | |
| | 0 | 26 | | AddEntityStore<StoredTrigger, EFCoreTriggerStore>(services); |
| | 0 | 27 | | AddStore<StoredBookmark, EFCoreBookmarkStore>(services); |
| | 0 | 28 | | AddStore<BookmarkQueueItem, EFBookmarkQueueStore>(services); |
| | 0 | 29 | | AddEntityStore<WorkflowExecutionLogRecord, EFCoreWorkflowExecutionLogStore>(services); |
| | 0 | 30 | | AddEntityStore<ActivityExecutionRecord, EFCoreActivityExecutionStore>(services); |
| | 0 | 31 | | AddStore<SerializedKeyValuePair, EFCoreKeyValueStore>(services); |
| | 0 | 32 | | } |
| | | 33 | | } |