コード例 #1
0
 public DbClusterLeaseService(IDbClusterUtils dbClusterService, DbClusterParameters dbClusterParameters, DbClusterReservateSettings settings)
 {
     this.onDisposeCancelSource = new CancellationTokenSource();
     this.dbClusterService      = dbClusterService;
     this.dbClusterParameters   = dbClusterParameters;
     this.settings = settings;
 }
コード例 #2
0
 public AcquiredLockServices AcquireServicesForAnyUrlsOrDefault(DbClusterParameters parameters, CancellationToken token)
 {
     return(this.AcquireServicesForAnyUrlsOrDefault(parameters.ConnStringsOrUrls, parameters.DatabaseName, parameters.LeaseCheckTimeout, parameters.LeaseLostTimeout, parameters.UpdateServerTimeInterval, token));
 }