OrderStatusChangedToCancelledIntegrationEvent is not published to the EventBus
Not sure, if I am missing something, here.
In src/Ordering.API/Application/DomainEventHandlers/OrderCancelledDomainEventHandler.cs, the Handle method creates the IntegrationEvent, but never submits it to the EventBus. It just add's that event to IntegrationEventLog table using the EventLogService.
No functionality related to this present in webApp. There is no way to cancel anyorder in web app.
This can be enhancement, if dotnet team agrees on it.
@harshaghanta Thanks for reporting this issue!
As @ks1990cn mentioned, we don't support this functionality in the application yet but would welcome a contribution.
It's a fairly medium sized feature so it would be good to sketch out what the necessary code changes would be before opening a PR. I anticipate that at minimum we'd need a UI change and a new API endpoint.
No functionality related to this present in webApp. There is no way to cancel anyorder in web app.
This can be enhancement, if dotnet team agrees on it.
Cancel functionality exists in the SPA at least. User will be able to cancel the order , till the Ordering.background task picks the order.
Isn't adding the below line of code enough.
await _orderingIntegrationEventService.PublishEventsThroughEventBusAsync(Guid.NewGuid());