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

            return((int)_connection.GetSetCount(consoleId.ToString()));
        }
Exemplo n.º 4
0
 public long GetTagsCount()
 {
     return(_connection.GetSetCount("tags"));
 }
Exemplo n.º 5
0
 public override long GetSetCount(string key)
 {
     return(_sqlServerConnection.GetSetCount(key));
 }