Exemple #1
0
 private static void Ping(IRequestPipeline pipeline, Node node, List <PipelineException> seenExceptions)
 {
     try
     {
         pipeline.Ping(node);
     }
     catch (PipelineException e) when(e.Recoverable)
     {
         pipeline.SniffOnConnectionFailure();
         e.RethrowKeepingStackTrace();
     }
 }
Exemple #2
0
 private static void Ping(IRequestPipeline pipeline, Node node)
 {
     try
     {
         pipeline.Ping(node);
     }
     catch (PipelineException e) when(e.Recoverable)
     {
         pipeline.SniffOnConnectionFailure();
         throw;
     }
 }
 private void Ping(IRequestPipeline pipeline, Node node)
 {
     try
     {
         pipeline.Ping(node);
     }
     catch (PipelineException e) when(e.Recoverable)
     {
         if (_productRegistration.SupportsSniff)
         {
             pipeline.SniffOnConnectionFailure();
         }
         throw;
     }
 }