Skip to content

Commit

Permalink
Simplify OrderFlow sample
Browse files Browse the repository at this point in the history
  • Loading branch information
stidsborg committed Aug 30, 2024
1 parent ee9910f commit acdf536
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ namespace Cleipnir.Flows.Sample.MicrosoftOpen.Flows.Rpc;
public class OrderFlow(
IPaymentProviderClient paymentProviderClient,
IEmailClient emailClient,
ILogisticsClient logisticsClient)
: Flow<Order>
ILogisticsClient logisticsClient
) : Flow<Order>
{
public override async Task Run(Order order)
{
var transactionId = Guid.NewGuid();
var transactionId = Guid.NewGuid();

await paymentProviderClient.Reserve(order.CustomerId, transactionId, order.TotalPrice);
var trackAndTrace = await logisticsClient.ShipProducts(order.CustomerId, order.ProductIds);
await paymentProviderClient.Capture(transactionId);
Expand Down

0 comments on commit acdf536

Please sign in to comment.