Exemplo n.º 1
0
        private static Task <PaginatedDocuments <T> > PlatformListAsync <T>(string partition, ReadOptions readOptions)
        {
            var future = AndroidData.List(JsonElementClass, partition, readOptions.ToAndroidReadOptions());

            return(Task.Run(() =>
            {
                var paginatedDocuments = (AndroidPaginatedDocuments)future.Get();
                return paginatedDocuments.ToPaginatedDocuments <T>();
            }));
        }
Exemplo n.º 2
0
        private static Task <DocumentWrapper <T> > PlatformReadAsync <T>(string documentId, string partition, ReadOptions readOptions)
        {
            var future = AndroidData.Read(documentId, JsonElementClass, partition, readOptions.ToAndroidReadOptions());

            return(RunDocumentWrapperTask <T>(future));
        }