Skip to content

Instantly share code, notes, and snippets.

@srkirkland
Created May 15, 2014 18:12
Show Gist options
  • Save srkirkland/8eea6916d9140b2bf6da to your computer and use it in GitHub Desktop.
Save srkirkland/8eea6916d9140b2bf6da to your computer and use it in GitHub Desktop.
crazy async stuff
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