Add key length annotation to Identifiable

This commit is contained in:
2025-09-01 21:50:00 +02:00
parent 29d21f06e5
commit 1c6398414d
12 changed files with 1065 additions and 21 deletions

View File

@@ -1,5 +1,6 @@
using API.Schema;
using log4net;
using Newtonsoft.Json;
namespace API.Workers;
@@ -12,10 +13,12 @@ public abstract class BaseWorker : Identifiable
/// <summary>
/// Dependencies and dependencies of dependencies. See also <see cref="DependsOn"/>.
/// </summary>
[JsonIgnore]
public IEnumerable<BaseWorker> AllDependencies => DependsOn.Select(d => d.AllDependencies).SelectMany(x => x);
/// <summary>
/// <see cref="AllDependencies"/> and Self.
/// </summary>
[JsonIgnore]
public IEnumerable<BaseWorker> DependenciesAndSelf => AllDependencies.Append(this);
/// <summary>
/// <see cref="DependsOn"/> where <see cref="WorkerExecutionState"/> is less than Completed.