private async Task InvokeNestedRulesAsync(bool invokeNestedRules, IGeneralRule <T> rule) { if (invokeNestedRules && rule.IsNested) { await ExecuteAsyncRules(_activeRuleService.FilterActivatingRules(rule.GetRules())); } }
private void InvokeNestedRules(bool invokeNestedRules, IGeneralRule <T> rule) { if (invokeNestedRules && rule.IsNested) { Execute(_activeRuleService.FilterActivatingRules(OrderByExecutionOrder(rule.GetRules()))); } }