Exemple #1
0
 private async Task UpdateDocumentAsync(int newVersion, DocumentSnapshot documentSnapshot)
 {
     await Task.Factory.StartNew(() => VersionCache.TrackDocumentVersion(documentSnapshot, newVersion), CancellationToken.None, TaskCreationOptions.None, ForegroundDispatcher.ForegroundScheduler).ConfigureAwait(false);
 }
 private async Task UpdateDocumentAsync(int newVersion, DocumentSnapshot documentSnapshot)
 {
     await ProjectSnapshotManagerDispatcher.RunOnDispatcherThreadAsync(
         () => VersionCache.TrackDocumentVersion(documentSnapshot, newVersion), CancellationToken.None).ConfigureAwait(false);
 }