namespace w4c_workflows.Services.Quota; /// /// Per-tenant workflow execution quota. Bound from the Workflows:Quota /// configuration section. A "run" is one top-level execution (manual, resume, /// cron/interval, webhook or handler event); sub-workflow child runs are part of /// their parent execution and do not consume quota. /// public sealed class WorkflowQuotaOptions { public const string SectionName = "Workflows:Quota"; /// /// Master switch. When false, usage is still counted and reported, but a run /// is never rejected (useful for platform/self-hosted deployments that meter /// without enforcing). /// public bool Enforced { get; set; } = true; /// /// Executions allowed per calendar month per tenant. Zero or negative means /// unlimited. /// public long RunsPerMonth { get; set; } = 1000; }