Пример #1
0
 public static long GetRecurringJobCount([NotNull] this JobStorageConnection connection)
 {
     if (connection == null)
     {
         throw new ArgumentNullException(nameof(connection));
     }
     return(connection.GetSetCount("recurring-jobs"));
 }
Пример #2
0
        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);
        }
Пример #3
0
        public int GetLineCount(ConsoleId consoleId)
        {
            if (consoleId == null)
            {
                throw new ArgumentNullException(nameof(consoleId));
            }

            return((int)_connection.GetSetCount(consoleId.ToString()));
        }
Пример #4
0
 public long GetTagsCount()
 {
     return(_connection.GetSetCount("tags"));
 }
Пример #5
0
 public override long GetSetCount(string key)
 {
     return(_sqlServerConnection.GetSetCount(key));
 }