Question

How do I remove all alarms from a ScheduledActionService?

ScheduledActionService.remove() method requires a name also does find()

Était-ce utile?

La solution

List<ScheduledNotification> notifications = ScheduledActionService.GetActions<ScheduledNotification>().ToList();
foreach (ScheduledNotification notification in notifications)
{
    ScheduledActionService.Remove(notification.Name);
}
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top