I use masstransit 8 + amazon sqs/sns, the app is running in Windows Docker container.
I send scheduled messages, and the delay could be up to few hours, here is the code:
public Task Consume(ConsumeContext<RequestReceivedEvent> context)
{
var uri = context.ReceiveContext.InputAddress;
var scheduledTime = DateTime.UtcNow.AddHours(12);
return context.ScheduleSend(uri, scheduledTime, new DelayedMessage());
}
However I have some questions regarding scheduled sending:
Many thanks in advance!