Closed oleksiikraievyi closed 5 years ago
Yes, Faults can be observed by state machines.
public Event<Fault<CreateCustomer>> CreateCustomerFaulted {get; private set;}
To initialize it:
Event(() => CreateCustomerFaulted, x => x.CorrelateById(m => m.Message.Message.CommandId));
Correlating on the original message property, which is included in the fault message.
@phatboyg And how it works with saga subscribed ? If external event handler fails with exception n times, Fault<> handler will be triggered on this external service and saga ?
If a consumer throws an exception, and exhausts all retries, the Fault
Thanks, you’ve helped me a lot
I have a saga which subscribes to response events which are produced by external services. In other words, saga publishes message, external event handler subscribed and responds to saga. These external event handlers have also Fault<> consumers. So, the question is, can saga be configured subscribe to these fault consumers ?