Skip to content

Commit f802f37

Browse files
authored
Review of sample: Azure Table Persistence Usage
1 parent c54bfde commit f802f37

File tree

1 file changed

+9
-9
lines changed
  • samples/azure/azure-table/transactions

1 file changed

+9
-9
lines changed

samples/azure/azure-table/transactions/sample.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
2-
title: Azure Table Persistence Usage with transactions
2+
title: Azure Table Persistence Usage with Transactions
33
summary: Using Azure Table Persistence to store sagas and outbox records atomically
4-
reviewed: 2022-11-17
4+
reviewed: 2025-03-06
55
component: ASP
66
related:
77
- nservicebus/sagas
88
---
99

10-
This sample shows a client/server scenario using saga and outbox persistences to store records atomically by leveraging transactions.
10+
This sample demonstrates a client/server scenario using sagas and outbox persistences to store records atomically by leveraging transactions.
1111

1212
## Projects
1313

@@ -25,31 +25,31 @@ The shared message contracts used by all endpoints.
2525
* Receive the `StartOrder` message and initiate an `OrderSaga`.
2626
* `OrderSaga` requests a timeout with an instance of `CompleteOrder` with the saga data.
2727
* Receive the `OrderShipped` message with a custom header.
28-
* `OrderSaga` publishes an `OrderCompleted` event when the `CompleteOrder` timeout fires.
28+
* `OrderSaga` publishes an `OrderCompleted` event when the `CompleteOrder` timeout is triggered.
2929

3030
### Persistence config
3131

3232
Configure the endpoint to use Azure Table Persistence.
3333

3434
snippet: AzureTableConfig
3535

36-
The order id is used as a partition key.
36+
The OrderId is used as the partition key.
3737

3838
## Behaviors
3939

40-
Most messages implement `IProvideOrderId` and thus a logical behavior can use the provided order identification as a partition key.
40+
Most messages implement `IProvideOrderId` enabling the logical behavior of using the provided OrderId as the partition key.
4141

4242
snippet: BehaviorUsingIProvideOrderId
4343

44-
One handler publishes an event that doesn't implement `IProvideOrderId` but adds a custom header to indicate the order identification. The handler also creates `OrderShippingInformation` by participating in the transactional batch provided by NServiceBus.
44+
One of the handlers publishes an event that does not implement `IProvideOrderId` but adds a custom header containing the OrderId. The handler also creates `OrderShippingInformation` as part of the transactional batch provided by NServiceBus.
4545

4646
snippet: UseHeader
4747

48-
The header can be used to determine the partition key in the transport receive context
48+
The header allows the partition key to be determined within the transport receive context.
4949

5050
snippet: BehaviorUsingHeader
5151

52-
Finally the above behaviors are registered in the pipeline.
52+
Finally, the above behaviors are registered in the pipeline.
5353

5454
snippet: BehaviorRegistration
5555

0 commit comments

Comments
 (0)