< Summary

Information
Class: Elsa.UserTasks.Options.UserTasksOptions
Assembly: Elsa.UserTasks
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.UserTasks/Options/UserTasksOptions.cs
Line coverage
100%
Covered lines: 20
Uncovered lines: 0
Coverable lines: 20
Total lines: 41
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.UserTasks/Options/UserTasksOptions.cs

#LineLine coverage
 1namespace Elsa.UserTasks.Options;
 2
 3public sealed class UserTasksOptions
 4{
 855    public string DefaultTenantId { get; set; } = "";
 856    public string DefaultProvider { get; set; } = "default";
 847    public string SubjectClaimType { get; set; } = "sub";
 848    public string TenantClaimType { get; set; } = "tenant";
 849    public string ProviderClaimType { get; set; } = "elsa:identity-provider";
 8410    public string DisplayNameClaimType { get; set; } = "name";
 8411    public ICollection<string> GroupClaimTypes { get; set; } = ["groups", "group"];
 8412    public ICollection<string> PermissionClaimTypes { get; set; } = ["permission", "permissions"];
 17813    public int MaximumPayloadBytes { get; set; } = 256 * 1024;
 11814    public TimeSpan DefaultInvitationLifetime { get; set; } = TimeSpan.FromDays(7);
 15
 16    /// <summary>Upper bound on a guest session, applied on top of the invitation's own expiry.</summary>
 15417    public TimeSpan GuestSessionLifetime { get; set; } = TimeSpan.FromHours(4);
 18
 19    /// <summary>Attempts allowed per caller partition within <see cref="AnonymousRateLimitWindow"/>.</summary>
 9120    public int AnonymousRateLimit { get; set; } = 10;
 21
 8622    public TimeSpan AnonymousRateLimitWindow { get; set; } = TimeSpan.FromMinutes(5);
 23
 24    /// <summary>Back-off schedule for invitation delivery retries. Delivery is abandoned once the list is exhausted.</s
 1825    public IReadOnlyList<TimeSpan> InvitationDeliveryRetryDelays { get; set; } =
 8126        [TimeSpan.FromSeconds(15), TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(5), TimeSpan.FromMinutes(30)];
 27
 28    /// <summary>Advertised to clients through the feature capability descriptor.</summary>
 8129    public bool RealtimeEnabled { get; set; } = true;
 30
 8131    public int PollingIntervalSeconds { get; set; } = 30;
 32
 33    /// <summary>How often the hosted worker marks overdue tasks and applies the timeout outcome.</summary>
 8134    public TimeSpan DueSweepInterval { get; set; } = TimeSpan.FromMinutes(1);
 35
 36    /// <summary>How often the hosted worker reconciles committed bookmarks against projected tasks.</summary>
 8137    public TimeSpan ReconciliationInterval { get; set; } = TimeSpan.FromMinutes(15);
 38
 39    /// <summary>Tenants swept by the hosted workers. Empty means the default tenant only.</summary>
 8140    public ICollection<string> WorkerTenantIds { get; set; } = [];
 41}