diff --git a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs index c74cfb978ad4..c680eeae830e 100644 --- a/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs +++ b/sdk/tables/Azure.Data.Tables/api/Azure.Data.Tables.netstandard2.0.cs @@ -132,7 +132,7 @@ protected TableTransactionalBatch() { } public virtual void DeleteEntity(string partitionKey, string rowKey, Azure.ETag ifMatch = default(Azure.ETag)) { } public virtual Azure.Response SubmitBatch(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> SubmitBatchAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public bool TryGetFailedEntityFromException(Azure.RequestFailedException exception, out Azure.Data.Tables.ITableEntity failedEntity) { throw null; } + public virtual bool TryGetFailedEntityFromException(Azure.RequestFailedException exception, out Azure.Data.Tables.ITableEntity failedEntity) { throw null; } public virtual void UpdateEntity(T entity, Azure.ETag ifMatch, Azure.Data.Tables.TableUpdateMode mode = Azure.Data.Tables.TableUpdateMode.Merge) where T : class, Azure.Data.Tables.ITableEntity, new() { } public virtual void UpsertEntity(T entity, Azure.Data.Tables.TableUpdateMode mode = Azure.Data.Tables.TableUpdateMode.Merge) where T : class, Azure.Data.Tables.ITableEntity, new() { } } diff --git a/sdk/tables/Azure.Data.Tables/src/TableRestClient.cs b/sdk/tables/Azure.Data.Tables/src/TableRestClient.cs index ade0b513d9f9..53a1f9a5ef55 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableRestClient.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableRestClient.cs @@ -5,9 +5,7 @@ using System; using System.Collections.Generic; -using System.Globalization; using System.Linq; -using System.Text.Json; using System.Text.RegularExpressions; using System.Threading; using System.Threading.Tasks; diff --git a/sdk/tables/Azure.Data.Tables/src/TableTransactionalBatch.cs b/sdk/tables/Azure.Data.Tables/src/TableTransactionalBatch.cs index b733dfb010a9..b0a9ee4005c2 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableTransactionalBatch.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableTransactionalBatch.cs @@ -61,7 +61,7 @@ protected TableTransactionalBatch() /// /// The batch boundary Guid. /// The changeset boundary Guid. - internal void SetBatchGuids(Guid batchGuid, Guid changesetGuid) + internal virtual void SetBatchGuids(Guid batchGuid, Guid changesetGuid) { _batchGuid = batchGuid; _changesetGuid = changesetGuid; @@ -256,7 +256,7 @@ internal async Task> SubmitBatchAsyncInternal(bool /// The exception thrown from or . /// If the return value is true, contains the that caused the batch operation to fail. /// true if the failed entity was retrieved from the exception, else false. - public bool TryGetFailedEntityFromException(RequestFailedException exception, out ITableEntity failedEntity) + public virtual bool TryGetFailedEntityFromException(RequestFailedException exception, out ITableEntity failedEntity) { failedEntity = null; diff --git a/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs b/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs index f15ded0b6882..e8ab2fd7fdfd 100644 --- a/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs +++ b/sdk/tables/Azure.Data.Tables/tests/TableClientLiveTests.cs @@ -981,7 +981,7 @@ public async Task BatchInsert() var entitiesToCreate = CreateCustomTableEntities(PartitionKeyValue, 5); // Create the batch. - var batch = client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey); + var batch = InstrumentClient(client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey)); batch.SetBatchGuids(Recording.Random.NewGuid(), Recording.Random.NewGuid()); @@ -1019,7 +1019,7 @@ public async Task BatchInsertAndMergeAndDelete() await client.AddEntityAsync(entitiesToCreate[2]).ConfigureAwait(false); // Create the batch. - TableTransactionalBatch batch = client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey); + TableTransactionalBatch batch = InstrumentClient(client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey)); batch.SetBatchGuids(Recording.Random.NewGuid(), Recording.Random.NewGuid()); @@ -1076,7 +1076,7 @@ public async Task BatchError() var entitiesToCreate = CreateCustomTableEntities(PartitionKeyValue, 4); // Create the batch. - var batch = client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey); + var batch = InstrumentClient(client.CreateTransactionalBatch(entitiesToCreate[0].PartitionKey)); batch.SetBatchGuids(Recording.Random.NewGuid(), Recording.Random.NewGuid());