public void Clear() { lock (_lock) { // Underlying array will call IDispose on remaining items which will cancel timers. _pendingMessageData.Clear(); } }
public void Clear() { _list.Clear(); }