public void Dismiss(int cookie) { ErrorUtil.ThrowOnFailure(RemoveItem(cookie)); _connectionPoint.ForAll(p => p.OnDismissed(cookie)); }