コード例 #1
0
 private static Task <DocumentWrapper <T> > PlatformReplaceAsync <T>(string documentId, T document, string partition, WriteOptions writeOptions)
 {
     return(RunJsonTask(() =>
     {
         var future = AndroidData.Replace(documentId, ToJsonElement(document), JsonElementClass, partition, writeOptions.ToAndroidWriteOptions());
         return ToDocumentWrapper <T>(future);
     }));
 }
コード例 #2
0
        private static Task <DocumentWrapper <T> > PlatformDeleteAsync <T>(string documentId, string partition, WriteOptions writeOptions)
        {
            var future = AndroidData.Delete(documentId, partition, writeOptions.ToAndroidWriteOptions());

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