コード例 #1
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         _documentClient?.Dispose();
         _documentClient = null;
     }
 }
コード例 #2
0
 public void Dispose()
 {
     _documentClient?.DeleteDocumentCollectionAsync(_cosmosDataStoreConfiguration.RelativeCollectionUri).GetAwaiter().GetResult();
     _documentClient?.Dispose();
 }