14 lines
478 B
C#
14 lines
478 B
C#
|
|
namespace SIGCM2.Application.Rubros;
|
||
|
|
|
||
|
|
/// Bound from appsettings section "Rubros".
|
||
|
|
/// Controls the maximum allowed depth of the N-ary rubro tree.
|
||
|
|
/// Resolvable via IOptions<RubrosOptions> in any handler that enforces the depth rule.
|
||
|
|
public sealed class RubrosOptions
|
||
|
|
{
|
||
|
|
public const string SectionName = "Rubros";
|
||
|
|
|
||
|
|
/// Maximum tree depth (0 = root level). Default: 10.
|
||
|
|
/// Depth-10 means a root + 9 levels of children.
|
||
|
|
public int MaxDepth { get; set; } = 10;
|
||
|
|
}
|