File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -30,17 +30,17 @@ This particular example will retry the entire saga every 5 seconds
30
30
31
31
``` c#
32
32
builder
33
- .StartWith <SayHello >()
34
- .CompensateWith <UndoHello >()
35
- .Saga (saga => saga
36
- .StartWith <DoTask1 >()
37
- .CompensateWith <UndoTask1 >()
38
- .Then <DoTask2 >()
39
- .CompensateWith <UndoTask2 >()
40
- .Then <DoTask3 >()
41
- .CompensateWith <UndoTask3 >()
33
+ .StartWith <SayHello >()
34
+ .CompensateWith <UndoHello >()
35
+ .Saga (saga => saga
36
+ .StartWith <DoTask1 >()
37
+ .CompensateWith <UndoTask1 >()
38
+ .Then <DoTask2 >()
39
+ .CompensateWith <UndoTask2 >()
40
+ .Then <DoTask3 >()
41
+ .CompensateWith <UndoTask3 >()
42
42
)
43
- .OnError (Models .WorkflowErrorHandling .Retry , TimeSpan .FromSeconds (5 ))
43
+ .OnError (Models .WorkflowErrorHandling .Retry , TimeSpan .FromSeconds (5 ))
44
44
.Then <SayGoodbye >();
45
45
```
46
46
@@ -57,10 +57,10 @@ builder
57
57
.Then <DoTask2 >()
58
58
.Then <DoTask3 >()
59
59
)
60
- .CompensateWithSequence (comp => comp
60
+ .CompensateWithSequence (comp => comp
61
61
.StartWith <UndoTask1 >()
62
62
.Then <UndoTask2 >()
63
- .Then <UndoTask3 >()
63
+ .Then <UndoTask3 >()
64
64
)
65
65
.Then <SayGoodbye >();
66
66
```
@@ -138,4 +138,4 @@ The compensation steps can be defined by specifying the `CompensateWith` paramet
138
138
}
139
139
]
140
140
}
141
- ```
141
+ ```
You can’t perform that action at this time.
0 commit comments