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