Ejemplo n.º 1
0
        public static JobCollectionRecurrenceFrequency GetFrequency(this TimeSpan timespan)
        {
            JobCollectionRecurrenceFrequency frequency = JobCollectionRecurrenceFrequency.Hour;

            if (timespan.Hours > 0)
            {
                frequency = JobCollectionRecurrenceFrequency.Hour;
            }
            else if (timespan.Minutes > 0)
            {
                frequency = JobCollectionRecurrenceFrequency.Minute;
            }
            return(frequency);
        }
 /// <summary>
 /// Initializes a new instance of the JobCollectionMaxRecurrence class
 /// with required arguments.
 /// </summary>
 public JobCollectionMaxRecurrence(JobCollectionRecurrenceFrequency frequency, int interval)
     : this()
 {
     this.Frequency = frequency;
     this.Interval = interval;
 }
 /// <summary>
 /// Initializes a new instance of the JobCollectionMaxRecurrence class
 /// with required arguments.
 /// </summary>
 public JobCollectionMaxRecurrence(JobCollectionRecurrenceFrequency frequency, int interval)
     : this()
 {
     this.Frequency = frequency;
     this.Interval  = interval;
 }