![]() |
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.
|
A helper for Azure Document DB. More...
Public Member Functions | |
AzureDocumentDbHelper (ILogger logger, IAzureDocumentDbConnectionCache azureDocumentDbConnectionCache) | |
Instantiates a new instance of AzureDocumentDbHelper. More... | |
async Task< Database > | CreateOrReadDatabase (DocumentClient client, string databaseName) |
Gets a Database creating one if it doesn't already exist. More... | |
async Task< DocumentCollection > | CreateOrReadCollection (DocumentClient client, Database database, string collectionName, string[] uniqiueIndexPropertyNames=null) |
Gets a DocumentCollection creating one if it doesn't already exist. More... | |
virtual T | ExecuteFaultTollerantFunction< T > (Func< T > func) |
Execute the provided func in a fault tolerant way. More... | |
virtual void | ExecuteFaultTollerantFunction (Action func) |
Execute the provided func in a fault tolerant way. More... | |
Protected Member Functions | |
virtual void | ProcessFaultTollerantExceptions (DocumentClientException documentClientException) |
Process the provided documentClientException checking for operations that can be retired. More... | |
Properties | |
ILogger | Logger [get] |
Gets or sets the ILogger. More... | |
IAzureDocumentDbConnectionCache | AzureDocumentDbConnectionCache [get] |
Gets the IAzureDocumentDbConnectionCache More... | |
A helper for Azure Document DB.