internal ICancellableAsyncResult BeginExecute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, object state) { TableRequestOptions modifiedOptions = TableRequestOptions.ApplyDefaults(requestOptions, client); operationContext = operationContext ?? new OperationContext(); CommonUtility.AssertNotNullOrEmpty("tableName", table.Name); IOperationExecutor <TableResult, TableOperation> operationExecutor = GetExecutor(client); return(operationExecutor.BeginExecute(this, client, table, modifiedOptions, operationContext, callback, state)); }
internal ICancellableAsyncResult BeginExecute(CloudTableClient client, CloudTable table, TableRequestOptions requestOptions, OperationContext operationContext, AsyncCallback callback, object state) { TableRequestOptions modifiedOptions = TableRequestOptions.ApplyDefaults(requestOptions, client); operationContext = operationContext ?? new OperationContext(); CommonUtility.AssertNotNullOrEmpty("tableName", table.Name); if (this.operations.Count == 0) { throw new InvalidOperationException(SR.EmptyBatchOperation); } if (this.operations.Count > 100) { throw new InvalidOperationException(SR.BatchExceededMaximumNumberOfOperations); } IOperationExecutor <IList <TableResult>, TableBatchOperation> operationExecutor = GetExecutor(client); return(operationExecutor.BeginExecute(this, client, table, modifiedOptions, operationContext, callback, state)); }