26 lines
830 B
C#
26 lines
830 B
C#
|
|
using CShells.FastEndpoints.Features;
|
||
|
|
using CShells.Features;
|
||
|
|
using Elsa.ShellFeatures;
|
||
|
|
using JetBrains.Annotations;
|
||
|
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
|
||
|
|
namespace Elsa.Shells.Api.ShellFeatures;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// Adds shells API features with FastEndpoints support.
|
||
|
|
/// </summary>
|
||
|
|
/// <remarks>
|
||
|
|
/// This feature implements <see cref="IFastEndpointsShellFeature"/> to indicate that this assembly
|
||
|
|
/// contains FastEndpoints that should be automatically discovered and registered.
|
||
|
|
/// </remarks>
|
||
|
|
[ShellFeature(
|
||
|
|
DisplayName = "Shells API",
|
||
|
|
Description = "Provides REST API endpoints for shell management",
|
||
|
|
DependsOn = [typeof(ElsaFastEndpointsFeature)])]
|
||
|
|
[UsedImplicitly]
|
||
|
|
public class ShellsApiFeature : IFastEndpointsShellFeature
|
||
|
|
{
|
||
|
|
public void ConfigureServices(IServiceCollection services)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
}
|