| | | 1 | | using CShells.FastEndpoints.Features; |
| | | 2 | | using CShells.Features; |
| | | 3 | | using Elsa.ShellFeatures; |
| | | 4 | | using Elsa.Platform.PackageManifest.Generator.Hints; |
| | | 5 | | using JetBrains.Annotations; |
| | | 6 | | using Microsoft.Extensions.DependencyInjection; |
| | | 7 | | |
| | | 8 | | namespace Elsa.Shells.Api.ShellFeatures; |
| | | 9 | | |
| | | 10 | | /// <summary> |
| | | 11 | | /// Adds shells API features with FastEndpoints support. |
| | | 12 | | /// </summary> |
| | | 13 | | /// <remarks> |
| | | 14 | | /// This feature implements <see cref="IFastEndpointsShellFeature"/> to indicate that this assembly |
| | | 15 | | /// contains FastEndpoints that should be automatically discovered and registered. |
| | | 16 | | /// </remarks> |
| | | 17 | | [ManifestFeatureCategory("Shells")] |
| | | 18 | | [ManifestFeatureCategory("API")] |
| | | 19 | | [ShellFeature( |
| | | 20 | | DisplayName = "Shells API", |
| | | 21 | | Description = "Provides REST API endpoints for shell management", |
| | | 22 | | DependsOn = [typeof(ElsaFastEndpointsFeature)])] |
| | | 23 | | [UsedImplicitly] |
| | | 24 | | public class ShellsApiFeature : IFastEndpointsShellFeature |
| | | 25 | | { |
| | | 26 | | public void ConfigureServices(IServiceCollection services) |
| | | 27 | | { |
| | 0 | 28 | | } |
| | | 29 | | } |