Beispiel #1
0
        public static bool TryFindAlarm(this IAlarmScheduler scheduler, string title, out Alarm alarm)
        {
            var alarms = scheduler.Alarms.Cast <Alarm>();

            alarm = alarms.SingleOrDefault(a => (a.Title ?? string.Empty) == (title ?? string.Empty));
            return(alarm != null);
        }
Beispiel #2
0
 public AlarmService(IAlarmScheduler scheduler, ResumptionCookie cookie)
 {
     SetField.NotNull(out this.scheduler, nameof(scheduler), scheduler);
     SetField.NotNull(out this.cookie, nameof(cookie), cookie);
 }
 public AlarmRenderer(IAlarmScheduler scheduler, IAlarmActions actions)
 {
     SetField.NotNull(out this.scheduler, nameof(scheduler), scheduler);
     SetField.NotNull(out this.actions, nameof(actions), actions);
 }
Beispiel #4
0
 public AlarmService(IAlarmScheduler scheduler, ConversationReference cookie)
 {
     SetField.NotNull(out this.scheduler, nameof(scheduler), scheduler);
     SetField.NotNull(out this.cookie, nameof(cookie), cookie);
 }