Inheritance: IStorageConnection
 public static long GetRecurringJobCount([NotNull] this JobStorageConnection connection)
 {
     if (connection == null)
     {
         throw new ArgumentNullException("connection");
     }
     return(connection.GetSetCount("recurring-jobs"));
 }
 public static long GetOnEventJobCount([NotNull] this JobStorageConnection connection)
 {
     if (connection == null)
     {
         throw new ArgumentNullException(nameof(connection));
     }
     return(connection.GetSetCount("on-event-jobs"));
 }
        public static List <RecurringJobDto> GetRecurringJobs(
            [NotNull] this JobStorageConnection connection,
            int startingFrom,
            int endingAt)
        {
            if (connection == null)
            {
                throw new ArgumentNullException("connection");
            }

            var ids = connection.GetRangeFromSet("recurring-jobs", startingFrom, endingAt);

            return(GetRecurringJobDtos(connection, ids));
        }
        public static List <OnEventJobDto> GetOnEventJobs(
            [NotNull] this JobStorageConnection connection,
            int startingFrom,
            int endingAt)
        {
            if (connection == null)
            {
                throw new ArgumentNullException(nameof(connection));
            }

            var ids = connection.GetRangeFromSet("on-event-jobs", startingFrom, endingAt);

            return(GetOnEventJobDtos(connection, ids));
        }