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")); }