exactly-once.github.io
public Task Handle(SendSubmit message, IMessageHandlingContext context) { var cart = repository.Load(message.Id); if (cart.IsSubmitted) { log.Info("Duplicate"); return; } cart.Submitted = true; context.Send(new Submit()); }