File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
articles/service-bus-messaging Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ using (TransactionScope ts = new TransactionScope(committableTransaction))
68
68
ServiceBusMessage msg = new ServiceBusMessage (" This is a message" );
69
69
msg .PartitionKey = " myPartitionKey" ;
70
70
await sender .SendMessageAsync (msg );
71
- await ts .CompleteAsync ();
71
+ await ts .Complete ();
72
72
}
73
73
committableTransaction .Commit ();
74
74
```
@@ -88,7 +88,7 @@ using (TransactionScope ts = new TransactionScope(committableTransaction))
88
88
ServiceBusMessage msg = new ServiceBusMessage (" This is a message" );
89
89
msg .SessionId = " mySession" ;
90
90
await sender .SendMessageAsync (msg );
91
- await ts .CompleteAsync ();
91
+ await ts .Complete ();
92
92
}
93
93
committableTransaction .Commit ();
94
94
```
You can’t perform that action at this time.
0 commit comments