MustSatisfy<T>(IEligibilityBuilder<T>, Predicate<T>, Func<IDescribedObject<T>, FormattableString>)
Adds a condition to the given IEligibilityBuilder, where the condition must be satisfied by the declaration in order to be eligible for the aspect. The new rule is given as a Predicate<T>.
Declaration
public static void MustSatisfy<T>(this IEligibilityBuilder<T> eligibilityBuilder, Predicate<T> predicate, Func<IDescribedObject<T>, FormattableString> getJustification) where T : class
Parameters
Type | Name | Description |
---|---|---|
IEligibilityBuilder<T> | eligibilityBuilder | The parent IEligibilityBuilder. |
Predicate<T> | predicate | A predicate that returns |
Func<IDescribedObject<T>, FormattableString> | getJustification | A delegate called in case |
Type Parameters
Name | Description |
---|---|
T |