Skip to content

Is it possible to use OutputExpression in OnFailure Action? #331

Answered by abbasc52
akashskypatel asked this question in Q&A
Discussion options

You must be logged in to vote

There is no separate implementation for onfailure. If it works for onsuccess it should work for onfailure
If you can share a working sample on https://dotnetfiddle.net/ i could have a look

}
private async ValueTask<ActionRuleResult> ExecuteActionForRuleResult(RuleResultTree resultTree, bool includeRuleResults = false)
{
var ruleActions = resultTree?.Rule?.Actions;
var actionInfo = resultTree?.IsSuccess == true ? ruleActions?.OnSuccess : ruleActions?.OnFailure;
if (actionInfo != null)
{
var action = _actionFactory.Get(actionInfo.Name);
var ruleParameters = re…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@akashskypatel
Comment options

Answer selected by akashskypatel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants