// Start new thread, wait and remove. private async void WaitAndRemoveEvent(AtmEventTimed e) { await Task.Delay(e.Timeout); RemoveEvent(e); }
protected void RaiseEvent(AtmEventTimed e) { base.RaiseEvent(e); WaitAndRemoveEvent(e); }