public DbClusterLeaseService(IDbClusterUtils dbClusterService, DbClusterParameters dbClusterParameters, DbClusterReservateSettings settings) { this.onDisposeCancelSource = new CancellationTokenSource(); this.dbClusterService = dbClusterService; this.dbClusterParameters = dbClusterParameters; this.settings = settings; }
public static DbClusterPacketsStore CreateMongoClusterPacketsStore(DbClusterReservateSettings settings) { return(new DbClusterPacketsStore(new DbClusterLeaseService(new DbClusterUtils(new MongoDbServicesFactory()), settings))); }