public static bool WaitForEvent <TSource>([NotNull] WaitForEventSettings <TSource> settings) { // WARNING: DO NOT DISPOSE THIS EventWatcher <TSource> watcher = EventWatcher.Create(settings); return(watcher.Wait(settings.Timeout.TotalIntMilliseconds())); }