< Summary

Information
Class: CounterpointCollective.Dataflow.Notifying.NotifyingPropagatorBlock<T1, T2>
Assembly: Dataflow.Composable
File(s): /builds/counterpointcollective/composabledataflowblocks/Source/Dataflow.Composable/DataFlow/Notifying/NotifyingPropagatorBlock.cs
Line coverage
100%
Covered lines: 3
Uncovered lines: 0
Coverable lines: 3
Total lines: 16
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
OfferMessage(...)100%11100%

File(s)

/builds/counterpointcollective/composabledataflowblocks/Source/Dataflow.Composable/DataFlow/Notifying/NotifyingPropagatorBlock.cs

#LineLine coverage
 1using System.Threading.Tasks.Dataflow;
 2
 3namespace CounterpointCollective.Dataflow.Notifying
 4{
 5    public class NotifyingPropagatorBlock<I, O> : NotifyingSourceBlock<O>, IPropagatorBlock<I,O>
 6    {
 7        private readonly ITargetBlock<I> _targetBlock;
 8
 429        public NotifyingPropagatorBlock(IPropagatorBlock<I, O> inner, ConfigureHooks<O> hooks) : base(inner, hooks)
 4210            => _targetBlock = inner;
 11
 12        /// <exclude/>
 13        public DataflowMessageStatus OfferMessage(DataflowMessageHeader messageHeader, I messageValue, ISourceBlock<I>? 
 50314            => _targetBlock.OfferMessage(messageHeader, messageValue, source, consumeToAccept);
 15    }
 16}