Skip to content

Instantly share code, notes, and snippets.

@bpatra
Created December 5, 2020 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpatra/52779d9c83f4ed2974c42165aaedc837 to your computer and use it in GitHub Desktop.
Save bpatra/52779d9c83f4ed2974c42165aaedc837 to your computer and use it in GitHub Desktop.
public interface IDocumentClientWrapped : IDisposable
{
/* Some command like methods*/
Task DeleteDocumentAsync(Uri uri);
Task CreateDocumentAsync(Uri uri, object obj);
/* Some query like methods*/
IRetryQueryable<T> CreateDocumentQuery<T>(Uri documentUri, FeedOptions feedOptions = null);
IRetryQueryable<T> CreateDocumentQuery<T>(Uri documentCollectionUri, SqlQuerySpec sqlSpec);
/* Copy here all other public method signature from DocumentClient but return IRetryQueryable instead of IOrderedQueryable or IQueryable */
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment