Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Eligibility / IEligibility­Builder<T>

Interface IEligibilityBuilder<T>

The argument of BuildEligibility(IEligibilityBuilder<T>). Allows the implementation to add requirements using methods of EligibilityExtensions.

Namespace: Metalama.Framework.Eligibility
Assembly: Metalama.Framework.dll
Syntax
public interface IEligibilityBuilder<out T> : IEligibilityBuilder where T : class
Type Parameters
Name Description
T

Type of declaration.

Methods

Name Description
AddRule(IEligibilityRule<T>)

Adds a rule to the current builder. For convenience, user code should use extension methods from EligibilityExtensions.

Extension Methods

EligibilityExtensions.Convert<T>(IEligibilityBuilder<T>)
EligibilityExtensions.ForScenarios<T>(IEligibilityBuilder<T>, EligibleScenarios)
EligibilityExtensions.ExceptForScenarios<T>(IEligibilityBuilder<T>, EligibleScenarios)
EligibilityExtensions.ExceptForInheritance<T>(IEligibilityBuilder<T>)
EligibilityExtensions.MustSatisfyAny<T>(IEligibilityBuilder<T>, Action<IEligibilityBuilder<T>>[])
EligibilityExtensions.MustSatisfyAll<T>(IEligibilityBuilder<T>, Action<IEligibilityBuilder<T>>[])
EligibilityExtensions.If<T>(IEligibilityBuilder<T>, Predicate<T>)
EligibilityExtensions.MustSatisfy<T>(IEligibilityBuilder<T>, Predicate<T>, Func<IDescribedObject<T>, FormattableString>)
EligibilityExtensions.MustSatisfy<T>(IEligibilityBuilder<T>, Action<IEligibilityBuilder<T>>)
EligibilityExtensions.MustBeOfType<T>(IEligibilityBuilder<T>, Type)
EligibilityExtensions.MustBeOfAnyType<T>(IEligibilityBuilder<T>, Type[])

See Also