Skip to content

Commit

Permalink
Including href
Browse files Browse the repository at this point in the history
  • Loading branch information
kirankumarkolli committed Jan 6, 2025
1 parent b6064f6 commit d743aad
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Microsoft.Azure.Cosmos/src/RequestOptions/RequestOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ namespace Microsoft.Azure.Cosmos
public class RequestOptions
{
/// <summary>
/// Gets or sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
/// Gets or sets the If-Match (ETag) associated with the request in the Azure Cosmos DB service.
/// </summary>
/// <remarks>
/// Most commonly used with the Delete* and Replace* methods of <see cref="Container"/> such as <see cref="Container.ReplaceItemAsync{T}(T, string, PartitionKey?, ItemRequestOptions, System.Threading.CancellationToken)"/>.
///
/// <see cref="Container.CreateItemAsync{T}(T, PartitionKey?, ItemRequestOptions, System.Threading.CancellationToken)"/> will ignore <see cref="IfMatchEtag"/> if specificed.
/// <see cref="Container.CreateItemAsync{T}(T, PartitionKey?, ItemRequestOptions, System.Threading.CancellationToken)"/> will ignore <see cref="IfMatchEtag"/> if specificed.
///
/// <seealso href="https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/database-transactions-optimistic-concurrency#implementing-optimistic-concurrency-control-using-etag-and-http-headers"/>
/// </remarks>
public string IfMatchEtag { get; set; }

Expand All @@ -33,6 +34,8 @@ public class RequestOptions
///
/// To match any Etag use "*"
/// If specified for writes (ex: Create, Replace, Delete) will be ignored.
///
/// <seealso href="https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/database-transactions-optimistic-concurrency#implementing-optimistic-concurrency-control-using-etag-and-http-headers"/>
/// </remarks>
public string IfNoneMatchEtag { get; set; }

Expand Down

0 comments on commit d743aad

Please sign in to comment.