public void Push(IDataflowMessage <TIn> item) { Interlocked.Increment(ref NumProcessedMessages); m_DecoratedTarget.Push(item); if (item.IsBroken) { Interlocked.Increment(ref NumBrokenMessages); } }
public void Push(IDataflowMessage <TIn> item) { if (!item.IsBroken) { m_DecoratedTarget.Push(item); m_nms++; Send(new WorkloadStatisticsContext(this.GroupGuid, this.TaskGuid, m_nms, m_InMsgFunc(), -1, GetBoundedCapacity(), Title)); } }
public void Push(IDataflowMessage <TIn> item) { if (!item.IsBroken) { m_LogAgent.LogTrace(DataflowNetworkConstituent.Target, m_DecoratedTarget.Title, "Pushing: {0}", item.Title); m_DecoratedTarget.Push(item); m_LogAgent.LogTrace(DataflowNetworkConstituent.Target, m_DecoratedTarget.Title, "Pushed: {0}", item.Title); } else { m_LogAgent.LogTrace(DataflowNetworkConstituent.Target, Title, "Broken message propagated through network. Title: {0}", item.Title); } }