I'm finding that IStoreSagaData.Delete is not called on when a saga calls MarkAsComplete during the first message. Is this by design? This makes it impossible to keep an archive of sagas which have completed.
I'm finding that IStoreSagaData.Delete is not called on when a saga calls MarkAsComplete during the first message. Is this by design? This makes it impossible to keep an archive of sagas which have completed.
是的,这是真的——这是代码非常“智能”的结果,以至于它知道不对立即标记为完整的 saga 做任何事情。
这也意味着要自己找到一种方法来挂钩该功能并不容易 - 至少在 Rebus 版本 <= 0.84.0 中。
Rebus 版本 >= 0.90.0(也称为“Rebus 2”)在各个方面都更容易扩展,我创建了这个问题,因为我认为一个好的 saga 状态审计功能将是 Rebus 中的一个很棒的功能。
我可能会在接下来的几天中添加它。