public static long GetRecurringJobCount([NotNull] this JobStorageConnection connection) { if (connection == null) { throw new ArgumentNullException(nameof(connection)); } return(connection.GetSetCount("recurring-jobs")); }
public int GetLineCount(ConsoleId consoleId) { if (consoleId == null) { throw new ArgumentNullException(nameof(consoleId)); } var result = (int)_connection.GetSetCount(consoleId.GetSetKey()); if (result == 0) { // Read operations should be backwards compatible and use // old keys, if new one don't contain any data. return((int)_connection.GetSetCount(consoleId.GetOldConsoleKey())); } return(result); }
public int GetLineCount(ConsoleId consoleId) { if (consoleId == null) { throw new ArgumentNullException(nameof(consoleId)); } return((int)_connection.GetSetCount(consoleId.ToString())); }
public long GetTagsCount() { return(_connection.GetSetCount("tags")); }
public override long GetSetCount(string key) { return(_sqlServerConnection.GetSetCount(key)); }