| | | 1 | | using CShells.Features; |
| | | 2 | | using Elsa.Dashboard.Api.ShellFeatures; |
| | | 3 | | using Elsa.Workflows.Runtime.Dashboard.Extensions; |
| | | 4 | | using Elsa.Workflows.Runtime.ShellFeatures; |
| | | 5 | | using Elsa.Platform.PackageManifest.Generator.Hints; |
| | | 6 | | using JetBrains.Annotations; |
| | | 7 | | using Microsoft.Extensions.DependencyInjection; |
| | | 8 | | |
| | | 9 | | namespace Elsa.Workflows.Runtime.Dashboard.ShellFeatures; |
| | | 10 | | |
| | | 11 | | [ManifestFeatureCategory("Workflows")] |
| | | 12 | | [ManifestFeatureCategory("Dashboard")] |
| | | 13 | | [ShellFeature( |
| | | 14 | | DisplayName = "Workflow Runtime Dashboard", |
| | | 15 | | Description = "Provides workflow runtime dashboard contributions", |
| | | 16 | | DependsOn = [typeof(WorkflowRuntimeFeature), typeof(DashboardApiFeature)])] |
| | | 17 | | [UsedImplicitly] |
| | | 18 | | public class WorkflowRuntimeDashboardFeature : IShellFeature |
| | | 19 | | { |
| | | 20 | | public void ConfigureServices(IServiceCollection services) |
| | | 21 | | { |
| | 0 | 22 | | services.AddWorkflowRuntimeDashboard(); |
| | 0 | 23 | | } |
| | | 24 | | } |