Exemplo n.º 1
0
 public void Push(IDataflowMessage <TIn>[] items)
 {
     try
     {
         m_DecoratedTarget.Push(items.Where(item => !item.IsBroken).Select(item => item.Data).ToArray());
     }
     catch (DataflowNetworkUnrecoverableErrorException ex)
     {
         m_LogAgent.LogFatal(DataflowNetworkConstituent.TargetBatched, m_DecoratedTarget.Title, ex);
         m_Cancel.CancelNetwork();
     }
     catch (DataflowNetworkRecoverableErrorException ex)
     {
         m_LogAgent.LogUnknown(DataflowNetworkConstituent.TargetBatched, m_DecoratedTarget.Title, ex);
     }
 }