CQRS.NET  2.2
A lightweight enterprise framework to write CQRS, event-sourced and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ TryGetDocumentCollection()

bool Cqrs.Azure.DocumentDb.IAzureDocumentDbConnectionCache.TryGetDocumentCollection ( string  key,
out DocumentCollection  documentCollection 
)

Gets the DocumentCollection.

Parameters
keyThe name of the DocumentCollection to get.
documentCollectionIf the DocumentCollection is found, it is returned here; otherwise null is returned. This parameter is passed uninitialized.
Returns
true if the DocumentCollection is found; otherwise, false.

Implemented in Cqrs.Azure.DocumentDb.ThreadedAzureDocumentDbConnectionCache, and Cqrs.Azure.DocumentDb.GlobalAzureDocumentDbConnectionCache.