This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task<List<Customer>> GetCustomerDataParallel() | |
{ | |
// Kick off all of these in parallel | |
var customerTask = service.GetCustomersAsync(); | |
var detailsTask = service.GetExtraCustomerDataFromService(); | |
var moreDetailsTask = service.GetmoreExternalCustomerDataFromService(); | |
// Wait for everything to complete. | |
await Task.WhenAll(customerTask, detailsTask, moreDetailsTask) | |
.ConfigureAwait(false); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Player | Region | OriginalPlace | Place | OriginalPoints | Points | Event | Type | StartDate | EndDate | RegionLock | Place | PointsWon | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ATLAS BEAR|IamChuan | Asia | 34 | 13 | 420 | 1300 | JAM Festival 2018 | Ranking | 10/19/2018 0:00 | 10/21/2018 0:00 | 5 | 10 | ||
ATLAS BEAR|IamChuan | Asia | 34 | 13 | 420 | 1300 | Canada Cup 2018 | Premier | 10/26/2018 0:00 | 10/28/2018 0:00 | 7 | 100 | ||
ATLAS BEAR|IamChuan | Asia | 34 | 13 | 420 | 1300 | LATAM Regional Finals 2018 | Premier | 11/2/2018 0:00 | 11/4/2018 0:00 | 1 | 700 | ||
ATLAS BEAR|IamChuan | Asia | 34 | 13 | 420 | 1300 | North American Regional Finals at Red Bull Conquest | Premier | 11/17/2018 0:00 | 11/18/2018 0:00 | 9 | 70 | ||
Brolynho | Latin America | 32 | 14 | 430 | 1290 | East Coast Throwdown 2018 | Ranking | 10/20/2018 0:00 | 10/21/2018 0:00 | 4 | 20 | ||
Brolynho | Latin America | 32 | 14 | 430 | 1290 | Canada Cup 2018 | Premier | 10/26/2018 0:00 | 10/28/2018 0:00 | 9 | 70 | ||
Brolynho | Latin America | 32 | 14 | 430 | 1290 | LATAM Regional Finals 2018 | Premier | 11/2/2018 0:00 | 11/4/2018 0:00 | 9 | 70 | ||
Brolynho | Latin America | 32 | 14 | 430 | 1290 | North American Regional Finals at Red Bull Conquest | Premier | 11/17/2018 0:00 | 11/18/2018 0:00 | 1 | 700 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using CsvHelper; | |
using Xunit; | |
namespace CsvHelperDisposeTests | |
{ | |
public class Tests | |
{ | |
[Fact] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
stuff(( | |
select | |
', | |
CONSTRAINT [' + | |
fk.name + | |
'] FOREIGN KEY (' + | |
stuff(( | |
select | |
', ' + tc.escapedColumnName as [text()] |