Here are the examples of the csharp api class System.Collections.Concurrent.ConcurrentBag.Add(TableResult) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
Project: identityazuretable
Source File: BatchOperationHelper.cs
Source File: BatchOperationHelper.cs
public async Task<IList<TableResult>> ExecuteBatchAsync(CloudTable table) => await Task.Run(() => { ConcurrentBag<TableResult> results = new ConcurrentBag<TableResult>(); //TODO: Fix for Core 5.0 _batches.ForEach(async (batchOperation) => { var x = await table.ExecuteBatchAsync(batchOperation); x.ToList().ForEach((tr) => { results.Add(tr); }); }); Clear(); return results.ToList(); });