public async Task <ActionResult> SagaSample(int id) { var command = new CheckSagaCommand() { ItemId = id }; return((await _bus.Send(command)).ActionResult); }
public async Task <DefaultResponse> Handle(CheckSagaCommand request, CancellationToken cancellationToken) { return(await _getSagaStatusAsResponse(request.ItemId)); }