public Task Consume(ConsumeContext <RoutingSlipRevised> context) { var @event = new RoutingSlipRevisedDocument(context.Message); return(_persister.Persist(context.Message.TrackingNumber, @event)); }
public Task Consume(ConsumeContext <RoutingSlipActivityCompensationFailed> context) { var @event = new RoutingSlipActivityCompensationFailedDocument(context.Message); return(_persister.Persist(context.Message.TrackingNumber, @event)); }