protected virtual void Dispose(bool disposing) { if (disposing) { _documentClient?.Dispose(); _documentClient = null; } }
public void Dispose() { _documentClient?.DeleteDocumentCollectionAsync(_cosmosDataStoreConfiguration.RelativeCollectionUri).GetAwaiter().GetResult(); _documentClient?.Dispose(); }