【发布时间】:2021-02-08 20:54:13
【问题描述】:
我正在使用 masstransit Courier 开展一个项目。我正在尝试在 1 小时后重新发送一条消息以重新执行活动。 这是我在执行活动方法中的代码:
await context.Redeliver(TimeSpan.FromMinutes(60));
var (success, message) = await client.performHttpRequest();
if(!success && context.GetRedeliveryCount() < 10))
{
await context.Redeliver(TimeSpan.FromMinutes(60));
}
但是补偿开始而不是重新交付。 我错过了什么?
【问题讨论】: