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

Defines methods to resolve parameter value from the context object.
Show file Open project: Kooboo/Ecommerce Class Usage Examples

Public Methods

Method Description
Dumb ( ) : RuleParameterValueResolver
FromDelegate ( Func resolver ) : RuleParameterValueResolver
ResolveValue ( RuleParameter param, object dataContext ) : object

Resolve the parameter value of the specified parameter from the context object.

Method Details

Dumb() public static method

public static Dumb ( ) : RuleParameterValueResolver
return RuleParameterValueResolver

FromDelegate() public static method

public static FromDelegate ( Func resolver ) : RuleParameterValueResolver
resolver Func
return RuleParameterValueResolver

ResolveValue() public abstract method

Resolve the parameter value of the specified parameter from the context object.
public abstract ResolveValue ( RuleParameter param, object dataContext ) : object
param RuleParameter The parameter to resolve value.
dataContext object The context object.
return object