MetalamaAPI documentationAspect APIMetalama.​Framework.​EligibilityEligibility­Rule­Factory
Open sandboxFocus

Class EligibilityRuleFactory

Creates instances of the IEligibilityRule<T> interface, which can then be used by the VerifyEligibility(IEligibilityRule<TAspectTarget>) method.

Inheritance
EligibilityRuleFactory
Namespace: Metalama.Framework.Eligibility
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class EligibilityRuleFactory : Object

Methods

Name Description
CreateRule<T>(Action<IEligibilityBuilder<T>>, Action<IEligibilityBuilder<T>>[])

Create an instance of the IEligibilityRule<T> interface, which can then be used by the VerifyEligibility(IEligibilityRule<TAspectTarget>) method.

CreateRule<TGeneral, TRequired>(Action<IEligibilityBuilder<TRequired>>, Action<IEligibilityBuilder<TRequired>>[])
GetAdviceEligibilityRule(AdviceKind)
GetContractAdviceEligibilityRule(ContractDirection)