I have a Saga which should wait for a specific Database-Value to be changed. How do I achieve this?
Example:
public partial class OrderSaga : Saga<OrderSagaData>, IHandleMessages<FinishOrder> {
public void Handle(FinishOrder message)
{
Order order=new Order(message.OrderId);
if (order.Approved) {
SendMail(order);
}
}
}
When the bool "Approved" of that Order is true I want to send a mail. But this can take hours or even days. How do I tell the Saga to check again in a few hours? I am new to Sagas and NServiceBus so the answer might be trivial, but I just did not find it.