MustSatisfyAll<T>(IEligibilityBuilder<T>, params Action<IEligibilityBuilder<T>>[])
Adds a group of conditions to the given IEligibilityBuilder, where all conditions must be satisfied by the declaration in order to be eligible for the aspect.
Declaration
public static void MustSatisfyAll<T>(this IEligibilityBuilder<T> eligibilityBuilder, params Action<IEligibilityBuilder<T>>[] requirements) where T : classParameters
| Type | Name | Description |
|---|---|---|
| IEligibilityBuilder<T> | eligibilityBuilder | The parent eligibility builder. |
| Action<IEligibilityBuilder<T>>[] | requirements | A variable number of actions that define eligibility rules. The declaration is eligible only if all of these rules are satisfied. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of declaration being validated. |
Remarks
Use this method to group multiple eligibility requirements that must all be met. This is typically used for organizational purposes when you have multiple related conditions.
This implements an AND logic between the specified requirements. Note that adding requirements directly to the builder also uses AND logic, so this method is primarily useful for grouping. See MustSatisfyAny<T>(IEligibilityBuilder<T>, params Action<IEligibilityBuilder<T>>[]) for OR logic.