@@ -3,12 +3,12 @@ title: Azure confidential ledger client library for .NET
3
3
keywords : Azure, dotnet, SDK, API, Azure.Security.ConfidentialLedger, confidentialledger
4
4
author : christothes
5
5
ms.author : chriss
6
- ms.date : 11/ 09/2022
6
+ ms.date : 09/12/2023
7
7
ms.topic : reference
8
8
ms.devlang : dotnet
9
9
ms.service : confidentialledger
10
10
---
11
- # Azure confidential ledger client library for .NET - version 1.1 .0
11
+ # Azure confidential ledger client library for .NET - version 1.2 .0
12
12
13
13
14
14
Azure confidential ledger provides a service for logging to an immutable, tamper-proof ledger. As part of the [ Azure Confidential Computing] [ azure_confidential_computing ]
@@ -133,13 +133,13 @@ ledgerClient.PostLedgerEntry(
133
133
When no collection id is specified on method calls, the Azure confidential ledger service will assume a constant, service-determined collection id.
134
134
135
135
``` C# Snippet:NoCollectionId
136
- Response postResponse = ledgerClient .PostLedgerEntry (
137
- waitUntil : WaitUntil .Completed ,
136
+ postOperation = ledgerClient .PostLedgerEntry (
137
+ waitUntil : WaitUntil .Completed ,
138
138
RequestContent .Create (
139
139
new { contents = " Hello world!" }));
140
140
141
141
string content = postOperation .GetRawResponse ().Content .ToString ();
142
- string transactionId = postOperation .Id ;
142
+ transactionId = postOperation .Id ;
143
143
string collectionId = " subledger:0" ;
144
144
145
145
// Try fetching the ledger entry until it is "loaded".
@@ -191,7 +191,8 @@ ledgerClient.PostLedgerEntry(
191
191
waitUntil : WaitUntil .Completed ,
192
192
RequestContent .Create (new { contents = " Hello world collection 1" }),
193
193
" my collection" );
194
- string transactionId = firstPostOperation .Id ;
194
+
195
+ transactionId = firstPostOperation .Id ;
195
196
196
197
// Wait for the entry to be committed
197
198
status = " Pending" ;
@@ -350,12 +351,12 @@ We guarantee that all client instance methods are thread-safe and independent of
350
351
### Additional concepts
351
352
352
353
<!-- CLIENT COMMON BAR -->
353
- [ Client options] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions ) |
354
- [ Accessing the response] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset ) |
355
- [ Long-running operations] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt ) |
356
- [ Handling failures] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception ) |
357
- [ Diagnostics] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/samples/Diagnostics.md ) |
358
- [ Mocking] ( https://github. com/Azure /azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1.0/ sdk/core/Azure.Core/README.md# mocking ) |
354
+ [ Client options] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/README.md#configuring-service-clients-using-clientoptions ) |
355
+ [ Accessing the response] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/README.md#accessing-http-response-details-using-responset ) |
356
+ [ Long-running operations] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/README.md#consuming-long-running-operations-using-operationt ) |
357
+ [ Handling failures] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/README.md#reporting-errors-requestfailedexception ) |
358
+ [ Diagnostics] ( https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/samples/Diagnostics.md ) |
359
+ [ Mocking] ( https://learn.microsoft. com/dotnet /azure/ sdk/unit-testing- mocking ) |
359
360
[ Client lifetime] ( https://devblogs.microsoft.com/azure-sdk/lifetime-management-and-thread-safety-guarantees-of-azure-sdk-net-clients/ )
360
361
<!-- CLIENT COMMON BAR -->
361
362
@@ -398,17 +399,17 @@ For more information see the [Code of Conduct FAQ][coc_faq] or contact
398
399
<!-- LINKS -->
399
400
[ style-guide-msft ] : /style-guide/capitalization
400
401
[ style-guide-cloud ] : https://aka.ms/azsdk/cloud-style-guide
401
- [ client_src ] : https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.ConfidentialLedger_1.1 .0/sdk/confidentialledger/Azure.Security.ConfidentialLedger
402
+ [ client_src ] : https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.ConfidentialLedger_1.2 .0/sdk/confidentialledger/Azure.Security.ConfidentialLedger
402
403
[ client_nuget_package ] : https://www.nuget.org/packages?q=Azure.Security.ConfidentialLedger
403
404
[ azure_cli ] : /cli/azure
404
405
[ azure_cloud_shell ] : https://shell.azure.com/bash
405
406
[ azure_confidential_computing ] : https://azure.microsoft.com/solutions/confidential-compute
406
- [ client_construction_sample ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/confidentialledger/Azure.Security.ConfidentialLedger/tests/samples/CertificateServiceSample.md
407
+ [ client_construction_sample ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/confidentialledger/Azure.Security.ConfidentialLedger/tests/samples/CertificateServiceSample.md
407
408
[ azure_sub ] : https://azure.microsoft.com/free/dotnet/
408
409
[ ccf ] : https://github.com/Microsoft/CCF
409
- [ azure_identity ] : https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.ConfidentialLedger_1.1 .0/sdk/identity/Azure.Identity
410
- [ default_cred_ref ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/identity/Azure.Identity/README.md#defaultazurecredential
411
- [ logging ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.1 .0/sdk/core/Azure.Core/samples/Diagnostics.md
410
+ [ azure_identity ] : https://github.com/Azure/azure-sdk-for-net/tree/Azure.Security.ConfidentialLedger_1.2 .0/sdk/identity/Azure.Identity
411
+ [ default_cred_ref ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/identity/Azure.Identity/README.md#defaultazurecredential
412
+ [ logging ] : https://github.com/Azure/azure-sdk-for-net/blob/Azure.Security.ConfidentialLedger_1.2 .0/sdk/core/Azure.Core/samples/Diagnostics.md
412
413
[ coc ] : https://opensource.microsoft.com/codeofconduct/
413
414
[ coc_faq ] : https://opensource.microsoft.com/codeofconduct/faq
414
415
[ cla ] : https://cla.microsoft.com
0 commit comments