/// <summary> /// Used to execute async rules. /// </summary> /// <returns></returns> public async Task <IRuleResult[]> ExecuteAsync() { if (!_rules.Any()) { return(await _asyncRuleService.GetAsyncRuleResultsAsync()); } var rules = await new BootstrapService <T>(_model, _ruleEngineId, _dependencyResolver) .BootstrapAsync(_rules); _asyncRuleService = new AsyncRuleService <T>(_model, rules, _ruleEngineConfiguration); await _asyncRuleService.InvokeAsyncRules(); return(await _asyncRuleService.GetAsyncRuleResultsAsync()); }