public ExpirationManager(MySqlStorage storage, MySqlStorageOptions options, TimeSpan checkInterval) { if (storage == null) { throw new ArgumentNullException("storage"); } _storage = storage; _options = options; _checkInterval = checkInterval; ProcessedTables = new string[] { "AggregatedCounter", "Job", "List", "Set", "Hash" }; }
public static IGlobalConfiguration <MySqlStorage> UseMySqlStorage(this IGlobalConfiguration configuration, string connectionString) { if (configuration == null) { throw new ArgumentNullException(nameof(configuration)); } if (connectionString == null) { throw new ArgumentNullException(nameof(connectionString)); } var storage = new MySqlStorage(connectionString); return(configuration.UseStorage(storage)); }
public MySqlWriteOnlyTransaction(MySqlStorage storage) { _storage = storage ?? throw new ArgumentNullException("storage"); }
public ExpirationManager(MySqlStorage storage) : this(storage, TimeSpan.FromHours(1)) { }
public MySqlDistributedLock(MySqlStorage storage, MySqlStorageOptions options, string resource, TimeSpan timeout) : this(storage.CreateAndOpenConnection(), options, resource, timeout) { _storage = storage; }
public ExpirationManager(MySqlStorage storage, MySqlStorageOptions options) : this(storage, options, TimeSpan.FromHours(1)) { }
public MySqlWriteOnlyTransaction(MySqlStorage storage, MySqlStorageOptions options) { _storage = storage ?? throw new ArgumentNullException("storage"); _options = options; }