Skip to content

Commit 4bc895a

Browse files
authored
Merge branch 'v1.9' into patch-2
2 parents e65f589 + a92c380 commit 4bc895a

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

daprdocs/content/en/developing-applications/building-blocks/distributed-lock/howto-use-distributed-lock.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,14 @@ namespace LockService
6262
{
6363
class Program
6464
{
65+
[Obsolete("Distributed Lock API is in Alpha, this can be removed once it is stable.")]
6566
static async Task Main(string[] args)
6667
{
6768
string DAPR_LOCK_NAME = "lockstore";
69+
string fileName = "my_file_name";
6870
var client = new DaprClientBuilder().Build();
69-
70-
using (var fileLock = await client.Lock(DAPR_LOCK_NAME, "my_file_name", "random_id_abc123", 60))
71+
72+
await using (var fileLock = await client.Lock(DAPR_LOCK_NAME, fileName, "random_id_abc123", 60))
7173
{
7274
if (fileLock.Success)
7375
{
@@ -147,7 +149,7 @@ namespace LockService
147149
var client = new DaprClientBuilder().Build();
148150

149151
var response = await client.Unlock(DAPR_LOCK_NAME, "my_file_name", "random_id_abc123"));
150-
Console.WriteLine(response.LockStatus);
152+
Console.WriteLine(response.status);
151153
}
152154
}
153155
}

daprdocs/content/en/reference/components-reference/supported-bindings/commercetools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The above example uses secrets as plain strings. It is recommended to use a secr
5151
| clientSecret | Y | Output | The commercetools client secret for the project | `"client secret"` |
5252
| scopes | Y | Output | The commercetools scopes for the project | `"manage_project:project-key"` |
5353

54-
For more information see [commercetools - Creating an API Client](https://docs.commercetools.com/tutorials/getting-started#creating-an-api-client) and [commercetools - Regions](https://docs.commercetools.com/api/general-concepts#regions).
54+
For more information see [commercetools - Creating an API Client](https://docs.commercetools.com/getting-started/create-api-client#create-an-api-client) and [commercetools - Regions](https://docs.commercetools.com/api/general-concepts#regions).
5555

5656
## Binding support
5757

0 commit comments

Comments
 (0)