Open sandboxFocus

Method GetContractAdviceEligibilityRule

GetContractAdviceEligibilityRule(ContractDirection)

Gets the default eligibility rules that apply to a contract advice for a specific direction. The rules returned by this method are those used by the ContractAspect class. If you implement the BuildEligibility(IEligibilityBuilder<T>) method manually, you can use this method to get the base rules, and add only rules that are specific to your aspect.

Declaration
public static IEligibilityRule<IDeclaration> GetContractAdviceEligibilityRule(ContractDirection contractDirection)
Parameters
Type Name Description
ContractDirection contractDirection
Returns
Type Description
IEligibilityRule<IDeclaration>