CQRS.NET  4.0
A lightweight enterprise Function as a Service (FaaS) framework to write function based serverless and micro-service applications in hybrid multi-datacentre, on-premise and Azure environments.

◆ CreateOrReadCollection()

Task<DocumentCollection> Cqrs.Azure.DocumentDb.IAzureDocumentDbHelper.CreateOrReadCollection ( DocumentClient  client,
Database  database,
string  collectionName,
string[]  uniqiueIndexPropertyNames = null 
)

Gets a DocumentCollection creating one if it doesn't already exist.

Parameters
clientThe DocumentClient to use.
databaseThe Database to look in.
collectionNameThe name of the collection to get.
uniqiueIndexPropertyNamesAny unique properties the collection should enforce.

Implemented in Cqrs.Azure.DocumentDb.AzureDocumentDbHelper.