From 6ec889dc7c6b09942055acb764558eff9f258a7f Mon Sep 17 00:00:00 2001 From: stidsborg Date: Fri, 11 Oct 2024 12:22:29 +0200 Subject: [PATCH] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 0c8d9e3..94d8347 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ builder.Services.AddFlows(c => c Finally, implement your flow ([source code](https://github.com/stidsborg/Cleipnir.Flows/blob/main/Samples/Cleipnir.Flows.Sample.MicrosoftOpen/Flows/Rpc/OrderFlow.cs)): ```csharp +[GenerateFlows] public class OrderFlow( IPaymentProviderClient paymentProviderClient, IEmailClient emailClient, @@ -125,6 +126,7 @@ As an example is worth a thousand lines of documentation - various useful exampl 1: Avoid executing already completed code again if a flow is restarted: ```csharp +[GenerateFlows] public class AtLeastOnceFlow : Flow { private readonly PuzzleSolverService _puzzleSolverService = new(); @@ -143,6 +145,7 @@ public class AtLeastOnceFlow : Flow 2: Ensure a flow step is **executed at-most-once**: ```csharp +[GenerateFlows] public class AtMostOnceFlow : Flow { private readonly RocketSender _rocketSender = new(); @@ -160,6 +163,7 @@ public class AtMostOnceFlow : Flow 3: Wait for 2 external messages before continuing flow ([source code](https://github.com/stidsborg/Cleipnir.Flows/tree/main/Samples/Cleipnir.Flows.Samples.Console/WaitForMessages)): ```csharp +[GenerateFlows] public class WaitForMessagesFlow : Flow { public override async Task Run(string param) @@ -197,6 +201,7 @@ await controlPanel.ReInvoke(); 6: Postpone a running flow (without taking in-memory resources) ([source code](https://github.com/stidsborg/Cleipnir.Flows/tree/main/Samples/Cleipnir.Flows.Samples.Console/Postpone)): ```csharp +[GenerateFlows] public class PostponeFlow : Flow { private readonly ExternalService _externalService = new(); @@ -278,6 +283,7 @@ Thus, to rectify the situation we must ensure that the flow is *restarted* if it Consider the following Order-flow: ```csharp +[GenerateFlows] public class OrderFlow : Flow { private readonly IPaymentProviderClient _paymentProviderClient;