Skip to content

Commit

Permalink
Update DigitalTwin lifecycle to use ETag and re-record (#12603)
Browse files Browse the repository at this point in the history
  • Loading branch information
azabbasi authored Jun 8, 2020
1 parent cbd4096 commit e5a22e0
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 119 deletions.
1 change: 1 addition & 0 deletions sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
- N/A

## 1.0.0-preview.2

Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ public async Task DigitalTwins_Lifecycle()
// update twin
string updateTwin = TestAssetsHelper.GetRoomTwinUpdatePayload();

await client.UpdateDigitalTwinAsync(roomTwinId, updateTwin).ConfigureAwait(false);
var requestOptions = new RequestOptions
{
IfMatch = "*"
};

await client.UpdateDigitalTwinAsync(roomTwinId, updateTwin, requestOptions).ConfigureAwait(false);

// delete a twin
await client.DeleteDigitalTwinAsync(roomTwinId).ConfigureAwait(false);
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit e5a22e0

Please sign in to comment.