MustSatisfyAny<T>(IEligibilityBuilder<T>, params Action<IEligibilityBuilder<T>>[])
Adds a group of conditions to the given IEligibilityBuilder, where at least one condition must be satisfied by the declaration in order to be eligible for the aspect.
Declaration
public static void MustSatisfyAny<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 alternative eligibility rules. The declaration is eligible if at least one of these rules is satisfied. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of declaration being validated. |
Remarks
Use this method when a declaration should be eligible if it meets any of several alternative criteria. For example, a method could be eligible if it's either static OR has a specific attribute.
This implements an OR logic between the specified requirements. See MustSatisfyAll<T>(IEligibilityBuilder<T>, params Action<IEligibilityBuilder<T>>[]) for AND logic.