Interface IOrderNotificationService
Service for sending order notifications.
public interface IOrderNotificationService
- Extension Methods
Methods
SendNotification(int, CancellationToken)
Send email notifications when the order reaches a status that has notifications enabled.
Task SendNotification(int orderId, CancellationToken cancellationToken)
Parameters
orderId
intThe order id.
cancellationToken
CancellationTokenCancellation token.
Returns
- Task
Remarks
If notifications are not enabled for the current order status, no email is sent. This includes both internal and customer notifications, depending on their configuration.
Exceptions
- OrderNotificationSendException
Thrown when sending the customer notification fails.