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