Beispiel #1
0
 private void CountQueuedMessages(object state)
 {
     if (counters != null)
     {
         int count = inDispatcher.PendingTaskCount;
         var od    = outDispatcher;              //in case of config reload to null
         if (od != null)
         {
             count += od.PendingTaskCount;
         }
         counters.SetNumberOfQueuedMessages(count);
     }
 }