public void Print(MessageReceiverStats stats) { foreach (var prop in stats.GetType().GetProperties()) { _logger.Info(this, $" {prop.Name}={prop.GetValue(stats, null)}"); } }
public OrderedMessageReceiver(ILogger logger) { _logger = logger; _mutex = new object(); _outOfOrderMessages = new List <Message>(); _nextSeqId = 0; _stats = new MessageReceiverStats(); }