private void HandleTimerCallback(object state) { TimerNotificationInfo info = (TimerNotificationInfo)state; TimerNotification notif = new TimerNotification(info.Type, this, -1, info.Message, info.UserData, info.NotifificationId); SendNotification(notif); if (info.NbOccurences == 0) { _notifications.Remove(info.NotifificationId); } }
private void HandleTimerCallback(object state) { TimerNotificationInfo info = (TimerNotificationInfo) state; TimerNotification notif = new TimerNotification(info.Type, this, -1, info.Message, info.UserData, info.NotifificationId); SendNotification(notif); if (info.NbOccurences == 0) { _notifications.Remove(info.NotifificationId); } }