Created
May 27, 2015 20:59
-
-
Save Porges/4e5b62664dec6a48b2f4 to your computer and use it in GitHub Desktop.
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
public IObservable<T> ExecuteQuery<T>(TableQuery<T> query, TableRequestOptions requestOptions = null, OperationContext operationContext = null) where T : ITableEntity, new() | |
{ | |
return Observable.Create<T>( | |
async (observer, ct) => | |
{ | |
var tableToken = new TableContinuationToken(); | |
while (tableToken != null) | |
{ | |
var results = await ExecuteQuerySegmented(query, tableToken, requestOptions, operationContext, ct); | |
foreach (var result in results) | |
{ | |
observer.OnNext(result); | |
} | |
tableToken = results.ContinuationToken; | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment