Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabh1007 committed Aug 4, 2024
1 parent 203c31c commit 38e2a7d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Microsoft.Azure.Cosmos/src/Batch/TransactionalBatchResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,22 @@ private static async Task<TransactionalBatchResponse> PopulateFromContentAsync(

internal int GetBatchSize()
{
if (this.Operations == null)
{
return 0;
}
return this.Operations.Count;
}

internal OperationType? GetBatchOperationName()
{
HashSet<OperationType> operationNames = new ();

if (this.Operations == null)
{
return null;
}

foreach (ItemBatchOperation operation in this.Operations)
{
operationNames.Add(operation.OperationType);
Expand Down

0 comments on commit 38e2a7d

Please sign in to comment.