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.ThreadedAzureDocumentDbConnectionCache Class Reference

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

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

Public Member Functions

 ThreadedAzureDocumentDbConnectionCache (IContextItemCollectionFactory factory)
 Instantiates a new instance of ThreadedAzureDocumentDbConnectionCache. More...
 
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

IContextItemCollection Cache [get]
 Gets the cache used. More...
 

Detailed Description

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