20 references to _messages
System.Threading.Tasks.Dataflow (20)
Internal\SourceCore.cs (20)
191
!
_messages
.TryDequeue(out consumedMessageValue))
233
if (messageHeader.Id == _nextMessageId.Value && !
_messages
.IsEmpty)
260
if (messageHeader.Id != _nextMessageId.Value ||
_messages
.IsEmpty) throw new InvalidOperationException(SR.InvalidOperation_MessageNotReservedByTarget);
295
if (
_messages
.TryDequeueIf(filter, out item))
340
if (!
_messages
.IsEmpty)
345
while (
_messages
.TryDequeue(out item)) tmpList.Add(item);
379
internal int OutputCount { get { lock (OutgoingLock) lock (ValueLock) return
_messages
.Count; } }
393
_messages
.Enqueue(item);
428
_messages
.Enqueue(itemsAsList[i]);
438
_messages
.Enqueue(itemsAsArray[i]);
445
_messages
.Enqueue(item);
566
if (
_messages
.TryPeek(out message))
626
!
_messages
.TryDequeue(out dropped)) // remove the next message
728
if (_taskForOutputProcessing == null && _enableOffering && !
_messages
.IsEmpty)
741
Debug.Assert(_taskForOutputProcessing == null && _enableOffering && !
_messages
.IsEmpty,
766
_owningSource, _taskForOutputProcessing, DataflowEtwProvider.TaskLaunchedReason.OfferingOutputMessages,
_messages
.Count);
918
if (
_messages
.IsEmpty || CanceledOrFaulted)
947
_messages
.Clear();
1007
internal int OutputCount { get { return _source.
_messages
.Count; } }
1009
internal IEnumerable<TOutput> OutputQueue { get { return _source.
_messages
.ToList(); } }