| | | 1 | | using CShells.FastEndpoints.Features; |
| | | 2 | | using CShells.Features; |
| | | 3 | | using Elsa.ShellFeatures; |
| | | 4 | | using Elsa.UserTasks.Extensions; |
| | | 5 | | using JetBrains.Annotations; |
| | | 6 | | using Microsoft.Extensions.DependencyInjection; |
| | | 7 | | |
| | | 8 | | namespace Elsa.UserTasks.ShellFeatures; |
| | | 9 | | |
| | | 10 | | [ShellFeature( |
| | | 11 | | DisplayName = "User Tasks", |
| | | 12 | | Description = "Provides identity-neutral, workflow-bound human tasks.", |
| | | 13 | | DependsOn = [typeof(ElsaFastEndpointsFeature)])] |
| | | 14 | | [UsedImplicitly] |
| | | 15 | | public sealed class UserTasksFeature : IFastEndpointsShellFeature |
| | | 16 | | { |
| | 0 | 17 | | public string DefaultTenantId { get; set; } = ""; |
| | 0 | 18 | | public string DefaultProvider { get; set; } = "default"; |
| | | 19 | | |
| | | 20 | | public void ConfigureServices(IServiceCollection services) |
| | | 21 | | { |
| | 0 | 22 | | services.AddUserTasksServices(options => |
| | 0 | 23 | | { |
| | 0 | 24 | | options.DefaultTenantId = DefaultTenantId; |
| | 0 | 25 | | options.DefaultProvider = DefaultProvider; |
| | 0 | 26 | | }); |
| | 0 | 27 | | } |
| | | 28 | | } |