public DocumentDbDistributedLock(string resource, TimeSpan timeout, DocumentDbStorage storage)
 {
     this.resource = resource;
     this.storage  = storage;
     Acquire(timeout);
 }
Beispiel #2
0
 public ExpirationManager(DocumentDbStorage storage)
 {
     this.storage       = storage ?? throw new ArgumentNullException(nameof(storage));
     defaultLockTimeout = TimeSpan.FromSeconds(30) + storage.Options.ExpirationCheckInterval;
 }
Beispiel #3
0
 public DocumentDbMonitoringApi(DocumentDbStorage storage) => this.storage = storage;
Beispiel #4
0
 public ExpirationManager(DocumentDbStorage storage)
 {
     this.storage = storage ?? throw new ArgumentNullException(nameof(storage));
     spDeleteExpiredDocumentsUri = UriFactory.CreateStoredProcedureUri(storage.Options.DatabaseName, storage.Options.CollectionName, "deleteExpiredDocuments");
 }
 public DocumentDbConnection(DocumentDbStorage storage)
 {
     Storage        = storage;
     QueueProviders = storage.QueueProviders;
 }
Beispiel #6
0
 public CountersAggregator(DocumentDbStorage storage)
 {
     this.storage       = storage ?? throw new ArgumentNullException(nameof(storage));
     defaultLockTimeout = TimeSpan.FromSeconds(30) + storage.Options.CountersAggregateInterval;
 }
 public CountersAggregator(DocumentDbStorage storage) => this.storage = storage ?? throw new ArgumentNullException(nameof(storage));