public void RemoveProcessedMessage(QueueMessage <TMessage> sucefullyProcessedMessage) { _queue.Remove(sucefullyProcessedMessage); }
protected virtual void OnProcessMessageLogException(QueueMessage <TMessage> message, Exception e) { var errorMessage = $"{ConsumerName}: {e.Message}\nStackTrace:{e.StackTrace}"; Trace.WriteLine(errorMessage, "Error"); }