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