private void StartWorkItem(T item) { if (!_dispatchQueue.TryQueueWorkItem(() => _handler(item, EndWorkItem))) { throw new NotSupportedException(); } }
private bool TryStartWorkItem(T item) { return(_dispatchQueue.TryQueueWorkItem(() => _handler(item, EndWorkItem))); }