コード例 #1
0
 public PrayerScheduler(PrayerDay prayerDay, IClock clock)
 {
     _clock     = clock;
     _timer     = new Timer(new TimerCallback(Tick), null, 1000 % DateTime.Now.Millisecond, 1000);
     _prayerDay = prayerDay;
 }
コード例 #2
0
 private void OnPrayerTime(PrayerDay day, PrayerType prayer)
 {
     PrayerTime?.Invoke(this, new PrayerTimeEventArgs(day, prayer));
 }
コード例 #3
0
 public PrayerTimeEventArgs(PrayerDay day, PrayerType prayer)
 {
     Day    = day;
     Prayer = prayer;
 }