Combine to Whens in Automatonymous state machine

Viewed 1267

I am making a Request from MassTransit state machine saga and wait for reply.

But there could be two errors coming back to me:

  • MyRequest.TimeoutExpired
  • MyRequest.Faulted

I don't care on which conditions the request was not fulfilled, I want both situations to result in an error message to be published.

However, I could not find any way to combine two outcomes with or condition, so I can have one handling case for both outcomes and not copy-paste my code.

1 Answers
Related