C# Class Kooboo.Commerce.Rules.Parameters.IndirectReferenceAdapter

当计算通过Id间接引用的对象中的参数值时,需要先获得引用对象的实例, 本类可以提供一个适配,将Kooboo.Commerce.Rules.IReferenceResolver适配为一个参数值求解器, 进而可以在参数求值链将对间接引用的对象进行衔接。
Inheritance: RuleParameterValueResolver
Afficher le fichier Open project: Kooboo/Ecommerce

Méthodes publiques

Méthode Description
IndirectReferenceAdapter ( Type referencingType, Type referenceResolverType ) : System
ResolveValue ( RuleParameter param, object dataContext ) : object

Method Details

IndirectReferenceAdapter() public méthode

public IndirectReferenceAdapter ( Type referencingType, Type referenceResolverType ) : System
referencingType System.Type
referenceResolverType System.Type
Résultat System

ResolveValue() public méthode

public ResolveValue ( RuleParameter param, object dataContext ) : object
param RuleParameter
dataContext object
Résultat object