private int DoWork(long correlationId, string expectedChannel) { var workCount = 0; try { workCount += OnCheckTimeouts(); workCount += _driverListener.PollMessage(correlationId, expectedChannel); } catch (Exception ex) { _errorHandler(ex); } return(workCount); }
private int DoWork(long correlationId, string expectedChannel) { int workCount = 0; try { workCount += OnCheckTimeouts(); workCount += _driverListener.PollMessage(correlationId, expectedChannel); } catch (Exception throwable) { _errorHandler(throwable); if (correlationId != NO_CORRELATION_ID) { // has been called from a user thread and not the conductor duty cycle. throw; } } return(workCount); }