Created
May 15, 2014 18:12
-
-
Save srkirkland/8eea6916d9140b2bf6da to your computer and use it in GitHub Desktop.
crazy async stuff
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
var combinedTask = Task.WhenAll(instructorSummaries | |
.Select(instructorSummary => | |
_instructorTable | |
.ExecuteAsync(TableOperation.InsertOrReplace(instructorSummary)))) | |
.ConfigureAwait(false); | |
var evaluationTask = _evaluationTable.ExecuteAsync(TableOperation.InsertOrReplace(overallSummary)).ConfigureAwait(false); | |
var result = new EvaluationTableResult | |
{ | |
EvaluationSummary = await evaluationTask, | |
InstructorSummaries = await combinedTask | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment