Esempio n. 1
0
 public DocumentDB(IAzureEndpoints AzureEndpoints)
 {
     dbClient = new DocumentClient(new Uri(AzureEndpoints.GetDocumentDBUrl()), AzureEndpoints.GetDocumentDBKey());
 }
Esempio n. 2
0
        public DocumentDB(IAzureEndpoints AzureEndpoints)
        {
            var documentClient        = new DocumentClient(new Uri(AzureEndpoints.GetDocumentDBUrl()), AzureEndpoints.GetDocumentDBKey());
            var documentRetryStrategy = new DocumentDbRetryStrategy(RetryStrategy.DefaultExponential)
            {
                FastFirstRetry = true
            };

            dbClient = documentClient.AsReliable(documentRetryStrategy);
        }
Esempio n. 3
0
 public DocumentDB(IAzureEndpoints AzureEndpoints)
 {
     dbClient = new DocumentClient(new Uri(AzureEndpoints.GetDocumentDBUrl()), AzureEndpoints.GetDocumentDBKey());
 }