public DbClusterLeaseService(IDbClusterUtils dbClusterService, DbClusterParameters dbClusterParameters, DbClusterReservateSettings settings) { this.onDisposeCancelSource = new CancellationTokenSource(); this.dbClusterService = dbClusterService; this.dbClusterParameters = dbClusterParameters; this.settings = settings; }
public AcquiredLockServices AcquireServicesForAnyUrlsOrDefault(DbClusterParameters parameters, CancellationToken token) { return(this.AcquireServicesForAnyUrlsOrDefault(parameters.ConnStringsOrUrls, parameters.DatabaseName, parameters.LeaseCheckTimeout, parameters.LeaseLostTimeout, parameters.UpdateServerTimeInterval, token)); }