add method to get scheduled events

This commit is contained in:
Andrew Welker
2020-12-11 15:42:38 -07:00
parent 1ee87c0499
commit 01ddf1721c
2 changed files with 14 additions and 1 deletions

View File

@@ -187,6 +187,11 @@ namespace PepperDash.Essentials
OnScheduledEventUpdate();
}
public List<ScheduledEventConfig> GetScheduledEvents()
{
return _config.ScheduledEvents ?? new List<ScheduledEventConfig>();
}
private void OnScheduledEventUpdate()
{
var handler = ScheduledEventsChanged;