From acdf5369b43b8ee8baf2f2d3999259eae3f8c0ad Mon Sep 17 00:00:00 2001 From: stidsborg Date: Fri, 30 Aug 2024 13:28:48 +0200 Subject: [PATCH] Simplify OrderFlow sample --- .../Flows/Rpc/OrderFlow.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Samples/Cleipnir.Flows.Sample.MicrosoftOpen/Flows/Rpc/OrderFlow.cs b/Samples/Cleipnir.Flows.Sample.MicrosoftOpen/Flows/Rpc/OrderFlow.cs index e2ada54..2355ed5 100644 --- a/Samples/Cleipnir.Flows.Sample.MicrosoftOpen/Flows/Rpc/OrderFlow.cs +++ b/Samples/Cleipnir.Flows.Sample.MicrosoftOpen/Flows/Rpc/OrderFlow.cs @@ -5,13 +5,13 @@ namespace Cleipnir.Flows.Sample.MicrosoftOpen.Flows.Rpc; public class OrderFlow( IPaymentProviderClient paymentProviderClient, IEmailClient emailClient, - ILogisticsClient logisticsClient) - : Flow + ILogisticsClient logisticsClient +) : Flow { 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);