1 write to _header
System.Threading.Tasks.Dataflow (1)
Blocks\WriteOnceBlock.cs (1)
369
_header
= Common.SingleMessageHeader;
11 references to _header
System.Threading.Tasks.Dataflow (11)
Blocks\WriteOnceBlock.cs (11)
130
this, taskForOutputProcessing, DataflowEtwProvider.TaskLaunchedReason.OfferingOutputMessages,
_header
.IsValid ? 1 : 0);
270
if (
_header
.IsValid && (filter == null || filter(_value!)))
333
target.OfferMessage(
_header
, _value!, this, consumeToAccept: useCloning);
395
if (
_header
.Id == messageHeader.Id)
417
return
_header
.Id == messageHeader.Id;
428
if (
_header
.Id != messageHeader.Id) throw new InvalidOperationException(SR.InvalidOperation_MessageNotReservedByTarget);
437
Debug.Assert(
_header
.IsValid, "A valid header is required.");
439
target.OfferMessage(
_header
, _value!, this, consumeToAccept: useCloning);
475
target.OfferMessage(
_header
, _value!, this, consumeToAccept: useCloning);
510
private bool HasValue { get { return
_header
.IsValid; } }
512
private T? Value { get { return
_header
.IsValid ? _value : default(T); } }