protected virtual void EventBatchProcessed(List <TaskWrapper> messages) { // LORENZO: test behaviours such as waiting for messages to be delivered or re-transmission foreach (TaskWrapper t in messages) { _logger.LogInfo(String.Format("task {0} status is '{1}'", t.Id, t.Status.ToString( ))); } TaskWrapper.BatchWaitAll(((List <TaskWrapper>)messages).ToArray( )); foreach (TaskWrapper t in messages) { _logger.LogInfo(String.Format("task {0} status is '{1}'", t.Id, t.Status.ToString( ))); } }