| | | 1 | | using Elsa.Dsl.ElsaScript.Compiler; |
| | | 2 | | using Elsa.Dsl.ElsaScript.Features; |
| | | 3 | | using Elsa.Features.Abstractions; |
| | | 4 | | using Elsa.Features.Attributes; |
| | | 5 | | using Elsa.Features.Services; |
| | | 6 | | using Elsa.WorkflowProviders.BlobStorage.Contracts; |
| | | 7 | | using Elsa.WorkflowProviders.BlobStorage.ElsaScript.Handlers; |
| | | 8 | | using Elsa.WorkflowProviders.BlobStorage.Features; |
| | | 9 | | using Microsoft.Extensions.DependencyInjection; |
| | | 10 | | |
| | | 11 | | namespace Elsa.WorkflowProviders.BlobStorage.ElsaScript.Features; |
| | | 12 | | |
| | | 13 | | /// <summary> |
| | | 14 | | /// A feature that enables ElsaScript support for the BlobStorage workflow provider. |
| | | 15 | | /// </summary> |
| | | 16 | | [DependsOn(typeof(BlobStorageFeature))] |
| | | 17 | | [DependsOn(typeof(ElsaScriptFeature))] |
| | 1 | 18 | | public class ElsaScriptBlobStorageFeature(IModule module) : FeatureBase(module) |
| | | 19 | | { |
| | | 20 | | /// <inheritdoc /> |
| | | 21 | | public override void Apply() |
| | | 22 | | { |
| | | 23 | | // Register the ElsaScript format handler |
| | 1 | 24 | | Services.AddScoped<IBlobWorkflowFormatHandler, ElsaScriptBlobWorkflowFormatHandler>(); |
| | 1 | 25 | | } |
| | | 26 | | } |