sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/TableOperation.cs
/// <summary>
/// Executes the operation against remote table.
/// </summary>
/// <param name="client">The <see cref="DatasyncClient"/> to use for communication with the backend.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the operation result when complete.</returns>
Executes the operation against remote table.
Executes the operation against remote table .
public async Task<JObject> ExecuteOperationOnRemoteServiceAsync(DatasyncClient client, CancellationToken cancellationToken = default)
        {
            Arguments.IsNotNull(client, nameof(client));
            if (IsCancelled)
            {
                return null;
            }
            if (Item == null)
            {
                throw new DatasyncInvalidOperationException("A table operation must have an item associated with it.");
            }
            IRemoteTable table = client.GetRemoteTable(TableName);
            JToken response = await ExecuteRemoteOperationAsync(table, cancellationToken).ConfigureAwait(false);
            var result = response as JObject;
            if (response != null && result == null)
            {
                throw new DatasyncInvalidOperationException("Datasync table operation returned an unexpected response.");
            }
            return result;
        }
public async Task < JObject > ExecuteOperationOnRemoteServiceAsync ( DatasyncClient client , CancellationToken cancellationToken = default ) { Arguments . IsNotNull ( client , nameof ( client ) ) ; if ( IsCancelled ) { return null ; } if ( Item == null ) { throw new DatasyncInvalidOperationException ( " " ) ; } IRemoteTable table = client . GetRemoteTable ( TableName ) ; JToken response = await ExecuteRemoteOperationAsync ( table , cancellationToken ) . ConfigureAwait ( false ) ; var result = response as JObject ; if ( response != null && result == null ) { throw new DatasyncInvalidOperationException ( " " ) ; } return result ; }
Executes the operation against remote table.
Executes the operation against remote table .
A task that returns the operation result when complete.
A task that returns the operation result when complete .
client
DatasyncClient
The  to use for communication with the backend.
The to use for communication with the backend .
cancellationToken
CancellationToken
A  to observe.
A to observe .