コード例 #1
0
        public async Task UpdateCurrentProviderSourceDatasets(IEnumerable <ProviderSourceDataset> providerSourceDatasets)
        {
            Guard.ArgumentNotNull(providerSourceDatasets, nameof(providerSourceDatasets));

            await _cosmosRepository.BulkUpsertAsync <ProviderSourceDataset>(
                providerSourceDatasets.Select(x => new KeyValuePair <string, ProviderSourceDataset>(x.ProviderId, x)),
                degreeOfParallelism : 15,
                undelete : true);
        }
コード例 #2
0
 public async Task SaveDatasets(IEnumerable <Dataset> datasets)
 {
     await _cosmosRepository.BulkUpsertAsync(datasets.ToList());
 }
コード例 #3
0
 public async Task UpdateCalculations(IEnumerable <Calculation> calculations)
 {
     await _cosmosRepository.BulkUpsertAsync(calculations.ToList());
 }