Exemplo n.º 1
0
 /// <summary>
 /// To form a rule (include <see cref="IMarketRule.IsReady"/>).
 /// </summary>
 /// <typeparam name="TToken">The type of token.</typeparam>
 /// <typeparam name="TArg">The type of argument, accepted by the rule.</typeparam>
 /// <param name="rule">Rule.</param>
 /// <param name="container">The rules container.</param>
 /// <returns>Rule.</returns>
 public static MarketRule <TToken, TArg> Apply <TToken, TArg>(this MarketRule <TToken, TArg> rule, IMarketRuleContainer container)
 {
     return((MarketRule <TToken, TArg>)((IMarketRule)rule).Apply(container));
 }
Exemplo n.º 2
0
 /// <summary>
 /// To form a rule (include <see cref="IMarketRule.IsReady"/>).
 /// </summary>
 /// <typeparam name="TToken">The type of token.</typeparam>
 /// <typeparam name="TArg">The type of argument, accepted by the rule.</typeparam>
 /// <param name="rule">Rule.</param>
 /// <returns>Rule.</returns>
 public static MarketRule <TToken, TArg> Apply <TToken, TArg>(this MarketRule <TToken, TArg> rule)
 {
     return(rule.Apply(DefaultRuleContainer));
 }