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); }
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); }
public AlarmService(IAlarmScheduler scheduler, ConversationReference cookie) { SetField.NotNull(out this.scheduler, nameof(scheduler), scheduler); SetField.NotNull(out this.cookie, nameof(cookie), cookie); }