public async Task <DefaultResponse> Handle(ResetSagaCommand request, CancellationToken cancellationToken) { var @event = new SagaResetEvent() { ItemId = request.ItemId }; await _publishEndpoint.Publish(@event); return(await _getSagaStatusAsResponse(request.ItemId)); }
public async Task <ActionResult> Reset(ResetSagaCommand request) { return((await _bus.Send(request)).ActionResult); }