Exemplo n.º 1
0
 private static void queue_ConnectionClosed ( object sender, QueueClientEventArgs e ) {
     QueueClient qc = (QueueClient)sender;
     // we simply don't re-enqueue that client
     if (clients.Count == 0) {
         run = false;
         // here we have to warn that our pool is now empty
     }
 }
Exemplo n.º 2
0
 public void OnConnectionClosed ( QueueClientEventArgs e ) {
     if (ConnectionClosed != null) {
         ConnectionClosed(this, e);
     }
 }