public DocumentDbDistributedLock(string resource, TimeSpan timeout, DocumentDbStorage storage)
 {
     this.resource = resource;
     this.storage  = storage;
     Acquire(timeout);
 }
Ejemplo n.º 2
0
 public ExpirationManager(DocumentDbStorage storage)
 {
     this.storage       = storage ?? throw new ArgumentNullException(nameof(storage));
     defaultLockTimeout = TimeSpan.FromSeconds(30) + storage.Options.ExpirationCheckInterval;
 }
Ejemplo n.º 3
0
 public DocumentDbMonitoringApi(DocumentDbStorage storage) => this.storage = storage;
Ejemplo n.º 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;
 }
Ejemplo n.º 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));