diff --git a/Sagaway.Hosts.DaprActorHost/DaprActorHost.cs b/Sagaway.Hosts.DaprActorHost/DaprActorHost.cs index 145625b..c4c167c 100644 --- a/Sagaway.Hosts.DaprActorHost/DaprActorHost.cs +++ b/Sagaway.Hosts.DaprActorHost/DaprActorHost.cs @@ -296,7 +296,8 @@ protected async Task ReportCompleteOperationOutcomeAsync(TEOperations operation, { await _retryPolicy.ExecuteAsync(async () => { - await Saga!.ReportOperationOutcomeAsync(operation, isSuccessful, failFast); + await Saga!.ReportOperationOutcomeAsync(operation, isSuccessful, + failFast == false ? SagaFastOutcome.Failure : SagaFastOutcome.None); }); } @@ -345,6 +346,10 @@ protected virtual JsonSerializerOptions GetJsonSerializerOptions() }; } + /// + /// Reset the saga state to allow re-execution + /// + /// Async operation public async Task ResetSagaAsync() { if (Saga != null)