| | | 1 | | using CShells.Features; |
| | | 2 | | using Elsa.Dsl.ElsaScript.ShellFeatures; |
| | | 3 | | using Elsa.WorkflowProviders.BlobStorage.Contracts; |
| | | 4 | | using Elsa.WorkflowProviders.BlobStorage.ElsaScript.Handlers; |
| | | 5 | | using Elsa.WorkflowProviders.BlobStorage.ShellFeatures; |
| | | 6 | | using Elsa.Platform.PackageManifest.Generator.Hints; |
| | | 7 | | using JetBrains.Annotations; |
| | | 8 | | using Microsoft.Extensions.DependencyInjection; |
| | | 9 | | |
| | | 10 | | namespace Elsa.WorkflowProviders.BlobStorage.ElsaScript.ShellFeatures; |
| | | 11 | | |
| | | 12 | | /// <summary> |
| | | 13 | | /// A feature that enables ElsaScript support for the BlobStorage workflow provider. |
| | | 14 | | /// </summary> |
| | | 15 | | [ManifestFeatureCategory("Storage")] |
| | | 16 | | [ManifestFeatureCategory("Scripting")] |
| | | 17 | | [ManifestFeatureCategory("Workflows")] |
| | | 18 | | [ShellFeature( |
| | | 19 | | DisplayName = "ElsaScript Blob Storage", |
| | | 20 | | Description = "Provides ElsaScript format support for the BlobStorage workflow provider", |
| | | 21 | | DependsOn = [typeof(BlobStorageFeature), typeof(ElsaScriptFeature)])] |
| | | 22 | | [UsedImplicitly] |
| | | 23 | | public class ElsaScriptBlobStorageFeature : IShellFeature |
| | | 24 | | { |
| | | 25 | | public void ConfigureServices(IServiceCollection services) |
| | | 26 | | { |
| | | 27 | | // Register the ElsaScript format handler |
| | 0 | 28 | | services.AddScoped<IBlobWorkflowFormatHandler, ElsaScriptBlobWorkflowFormatHandler>(); |
| | 0 | 29 | | } |
| | | 30 | | } |
| | | 31 | | |