Exemple #1
0
 private async void RunAsyncRule(IBusinessRuleAsync asyncRule, IRuleContext context)
 {
     try
     {
         await asyncRule.ExecuteAsync(context);
     }
     finally
     {
         context.Complete();
     }
 }
Exemple #2
0
 private async Task ExecuteRuleAsync(IBusinessRuleAsync rule, RuleContext context)
 {
     await rule.ExecuteAsync(context);
 }