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.
Cqrs.Azure.DocumentDb.GlobalAzureDocumentDbConnectionCache Class Reference

A cache manager for DocumentDB clients, databases and collections that is global. More...

+ Inheritance diagram for Cqrs.Azure.DocumentDb.GlobalAzureDocumentDbConnectionCache:

Public Member Functions

bool TryGetClient (string key, out DocumentClient client)
 Gets the DocumentClient. More...
 
void SetClient (string key, DocumentClient client)
 Sets the provided client . More...
 
bool TryGetDatabase (string key, out Database database)
 Gets the Database. More...
 
void SetDatabase (string key, Database database)
 Sets the provided database . More...
 
bool TryGetDocumentCollection (string key, out DocumentCollection documentCollection)
 Gets the DocumentCollection. More...
 
void SetDocumentCollection (string key, DocumentCollection documentCollection)
 Sets the provided documentCollection . More...
 

Properties

static IDictionary< string, object > Cache [get]
 Gets the cache used. More...
 

Detailed Description

A cache manager for DocumentDB clients, databases and collections that is global.