コード例 #1
0
 /// <summary>
 /// Creates a FrequencyTime that occurs multiple times on the same day following a certain rule.
 /// </summary>
 /// <param name="intervalTime">How often this interval repeats.</param>
 /// <param name="intervalTimeType">The type of repeat, e.g. hours, minutes or seconds.</param>
 /// <param name="startingTime">The time this rule should run at.</param>
 /// <param name="endingTime">The time this rule will stop running at.</param>
 public FrequencyTime(int intervalTime, FrequencyTimeUnit intervalTimeType, DateTime startingTime, DateTime endingTime)
 {
     mTimeType         = FrequencyTimeType.OccursEvery;
     mIntervalTime     = intervalTime;
     mIntervalTimeType = intervalTimeType;
     mStartTime        = startingTime;
     mEndTime          = endingTime;
 }
コード例 #2
0
 /// <summary>
 /// Creates a FrequencyTime that occurs at a specified time.
 /// </summary>
 /// <param name="occursAt">The time this frequency will run at.</param>
 public FrequencyTime(DateTime occursAt)
 {
     mTimeType = FrequencyTimeType.OccursOnce;
     mOccursAt = occursAt;
 }