public static async Task <BusinessRules.RuleResponse> Run([ActivityTrigger] BusinessRules.CustomersData data) { await Task.Delay(10); return(new BusinessRules.RuleResponse() { IsValid = true, RuleName = "Rule2" }); }
public static async Task <BusinessRules.RuleResponse> Run([ActivityTrigger] BusinessRules.CustomersData data) { // BusinessRules.IRule rule = new BusinessRules.Rule1(); - // return rule.Execute(data); - // await Task.Delay(10); - return(new BusinessRules.RuleResponse() { IsValid = true, RuleName = "Rule1" }); }