sdk/dotnet/src/Microsoft.Datasync.Client/Offline/Queue/DeleteOperation.cs
/// <summary>
/// Internal version of the <see cref="TableOperation.ExecuteOperationOnRemoteServiceAsync(DatasyncClient, CancellationToken)"/>, to execute
/// the operation against a remote table.
/// </summary>
/// <param name="table">The remote table connection.</param>
/// <param name="cancellationToken">A <see cref="CancellationToken"/> to observe.</param>
/// <returns>A task that returns the operation result when complete.</returns>
Internal version of the , to execute
the operation against a remote table.
Internal version of the to execute the operation against a remote table .
protected override async Task<JToken> ExecuteRemoteOperationAsync(IRemoteTable table, CancellationToken cancellationToken)
        {
            try
            {
                await table.DeleteItemAsync(Item, cancellationToken).ConfigureAwait(false);
                return null;
            }
            catch (DatasyncInvalidOperationException ex) when (ex.Response?.StatusCode == HttpStatusCode.NotFound || ex.Response?.StatusCode == HttpStatusCode.Gone)
            {
                return null;
            }
        }
protected override async Task < JToken > ExecuteRemoteOperationAsync ( IRemoteTable table , CancellationToken cancellationToken ) { try { await table . DeleteItemAsync ( Item , cancellationToken ) . ConfigureAwait ( false ) ; return null ; } catch ( DatasyncInvalidOperationException ex ) when ( ex . Response ? . StatusCode == HttpStatusCode . NotFound || ex . Response ? . StatusCode == HttpStatusCode . Gone ) { return null ; } }
Internal version of the , to execute
the operation against a remote table.
Internal version of the to execute the operation against a remote table .
// The item no longer exists on the server, so skip the deletion.
A task that returns the operation result when complete.
A task that returns the operation result when complete .
table
IRemoteTable
The remote table connection.
The remote table connection .
cancellationToken
CancellationToken
A  to observe.
A to observe .