HandleEventAsync(OrderPlacedEvent eventMessage)method by incorporating custom code capable of returning specific errors. In cases where an error is encountered, I desire that the
PlaceOrderAsyncmethod promptly returns the error, preventing the continuation of the process. Currently, there is an inconsistency in the behavior, specifically when an order is cancelled; the expected result is false instead of true, as seen in the following code snippet:
if (result.Success)
return result;
I am exploring options to modify this behavior through the integration of a custom plugin. Ideally, I aim to maintain the vanilla functionality of the system while allowing the mentioned check to be handled exclusively by the plugin. Is there a method or configuration that enables me to achieve this customization?