Ejemplo n.º 1
0
 /// <summary>
 /// Re-initializes the batch with the specified Guids for testing purposes.
 /// </summary>
 /// <param name="batchGuid">The batch boundary Guid.</param>
 /// <param name="changesetGuid">The changeset boundary Guid.</param>
 internal void SetBatchGuids(Guid batchGuid, Guid changesetGuid)
 {
     _batchGuid     = batchGuid;
     _changesetGuid = changesetGuid;
     _batch         = TableRestClient.CreateBatchContent(_batchGuid);
     _changeset     = _batch.AddChangeset(_changesetGuid);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TablesBatch"/> class.
 /// </summary>
 /// <param name="table"></param>
 /// <param name="tableOperations"></param>
 /// <param name="format"></param>
 internal TablesBatch(string table, TableRestClient tableOperations, OdataMetadataFormat format)
 {
     _table           = table;
     _tableOperations = tableOperations;
     _diagnostics     = _tableOperations.clientDiagnostics;
     _batchOperations = new TableRestClient(_diagnostics, CreateBatchPipeline(), _tableOperations.endpoint, _tableOperations.clientVersion);
     _format          = format;
     _batch           = TableRestClient.CreateBatchContent(_batchGuid);
     _changeset       = _batch.AddChangeset(_changesetGuid);
 }