Skip to content

Commit 783c7a7

Browse files
Edits
1 parent 1205394 commit 783c7a7

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

articles/storage/blobs/storage-blob-container-lease.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This article shows how to create and manage container leases using the [Azure St
2222

2323
[!INCLUDE [storage-dev-guide-about-container-lease](../../../includes/storage-dev-guides/storage-dev-guide-about-container-lease.md)]
2424

25-
To learn more about container leases using the client library, see [Create and manage blob leases with .NET](storage-blob-lease.md).
25+
To learn more about blob leases using the client library, see [Create and manage blob leases with .NET](storage-blob-lease.md).
2626

2727
## Acquire a lease
2828

@@ -44,8 +44,6 @@ To renew a lease, use one of the following methods on a [BlobLeaseClient](/dotne
4444
- [Renew](/dotnet/api/azure.storage.blobs.specialized.blobleaseclient.renew)
4545
- [RenewAsync](/dotnet/api/azure.storage.blobs.specialized.blobleaseclient.renewasync)
4646

47-
You can specify the lease ID by setting the [IfMatch](/dotnet/api/azure.matchconditions.ifmatch) property of a [RequestConditions](/dotnet/api/azure.requestconditions) instance.
48-
4947
The following example renews a container lease:
5048

5149
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/LeaseContainer.cs" id="Snippet_RenewContainerLease":::
@@ -76,7 +74,24 @@ The following example breaks a lease on a container:
7674

7775
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/LeaseContainer.cs" id="Snippet_BreakContainerLease":::
7876

79-
## See also
77+
[!INCLUDE [storage-dev-guide-container-lease](../../../includes/storage-dev-guides/storage-dev-guide-container-lease.md)]
78+
79+
## Resources
80+
81+
To learn more about managing container leases using the Azure Blob Storage client library for .NET, see the following resources.
82+
83+
### REST API operations
84+
85+
The Azure SDK for .NET contains libraries that build on top of the Azure REST API, allowing you to interact with REST API operations through familiar .NET paradigms. The client library methods for managing container leases use the following REST API operation:
86+
87+
- [Lease Container](/rest/api/storageservices/lease-container)
88+
89+
### Code samples
90+
91+
- [View code samples from this article (GitHub)](https://github.com/Azure-Samples/AzureStorageSnippets/blob/master/blobs/howto/dotnet/BlobDevGuideBlobs/LeaseContainer.cs)
92+
93+
[!INCLUDE [storage-dev-guide-resources-dotnet](../../../includes/storage-dev-guides/storage-dev-guide-resources-dotnet.md)]
94+
95+
### See also
8096

81-
- [Get started with Azure Blob Storage and .NET](storage-blob-dotnet-get-started.md)
82-
- [Managing Concurrency in Blob storage](concurrency-manage.md)
97+
- [Managing Concurrency in Blob storage](concurrency-manage.md)

articles/storage/blobs/storage-blob-lease.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ To renew a lease, use one of the following methods on a [BlobLeaseClient](/dotne
4444
- [Renew](/dotnet/api/azure.storage.blobs.specialized.blobleaseclient.renew)
4545
- [RenewAsync](/dotnet/api/azure.storage.blobs.specialized.blobleaseclient.renewasync)
4646

47-
You can specify the lease ID by setting the [IfMatch](/dotnet/api/azure.matchconditions.ifmatch) property of a [RequestConditions](/dotnet/api/azure.requestconditions) instance.
48-
4947
The following example renews a lease for a blob:
5048

5149
:::code language="csharp" source="~/azure-storage-snippets/blobs/howto/dotnet/BlobDevGuideBlobs/LeaseBlob.cs" id="Snippet_RenewBlobLease":::

0 commit comments

Comments
 (0)